Skip to content

Commit

Permalink
Add openness param to testing
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonWilde committed Dec 20, 2024
1 parent b602b32 commit a0cf7b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"project_name": "NestaTestCookie".lower(),
"author_name": "Nesta",
"repo_name": "nestatestcookie",
"openness": "public"
}


Expand Down
2 changes: 1 addition & 1 deletion tests/test_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_metadata(self):
assert project.get("name") == "nestatestcookie"
assert project.get("version") == "0.1.0"
assert any(author.get("name") == "Nesta" for author in project.get("authors", []))
if pytest.param.get("openess") == "private":
if pytest.param.get("openness") == "private":
assert project.get("license", {}).get("text") == "proprietary"
else:
assert project.get("license", {}).get("text") == "MIT"
Expand Down

0 comments on commit a0cf7b0

Please sign in to comment.