Skip to content

Commit

Permalink
fix no __version__ test - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Jun 7, 2024
1 parent 07ec15b commit 9cdbb5d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_pyproject_toml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,9 +912,10 @@ def test_37_package_dirs__multi_missing_version__ok(
# make an extra package *TO BE* included -- but file won't be in 'version_variables'
os.mkdir(f"{directory}/another_one")
Path(f"{directory}/another_one/__init__.py").touch()
# don't make the __version__, that's the point of this test
# with open(f"{directory}/another_one/__init__.py", "w") as f:
# f.write("__version__ = '7.8.9'\n")
with open(f"{directory}/another_one/__init__.py", "w") as f:
f.write(
"__version__ = some_fancy_func_to_get_version_number_thats_not_recommended_but_possible()\n"
)

# run pyproject_toml_builder
pyproject_toml_builder.work(
Expand Down

0 comments on commit 9cdbb5d

Please sign in to comment.