Skip to content
This repository has been archived by the owner on Jan 28, 2025. It is now read-only.

Commit

Permalink
Merge pull request #224 from goneri/test_python_type-extend-the-test_…
Browse files Browse the repository at this point in the history
…32559

test_python_type: extend the test

Depends-On: ansible/ansible-zuul-jobs#1727
Merge two duplicated test_python_type() tests.
  • Loading branch information
softwarefactory-project-zuul[bot] authored Dec 20, 2022
2 parents 7d53917 + a18da49 commit f0c0499
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions vmware_rest_code_generator/cmd/test_refresh_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ def test_python_type():
assert rm.python_type("array") == "list"
assert rm.python_type("list") == "list"
assert rm.python_type("boolean") == "bool"
assert rm.python_type("object") == "dict"
assert rm.python_type("string") == "str"


def test_path_to_name():
Expand Down Expand Up @@ -374,11 +376,6 @@ def test_gen_documentation(m_get_module_from_config):
assert a["options"]["vcenter_password"]


def test_python_type():
assert rm.python_type("object") == "dict"
assert rm.python_type("string") == "str"


def test_format_documentation():

expectation = """r'''
Expand Down

0 comments on commit f0c0499

Please sign in to comment.