From 9cdbb5d530883904677bb114d6421ac7efe57094 Mon Sep 17 00:00:00 2001 From: ric-evans Date: Fri, 7 Jun 2024 14:49:49 -0400 Subject: [PATCH] fix no __version__ test - 3 --- tests/test_pyproject_toml_builder.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_pyproject_toml_builder.py b/tests/test_pyproject_toml_builder.py index e61e814..b96c587 100644 --- a/tests/test_pyproject_toml_builder.py +++ b/tests/test_pyproject_toml_builder.py @@ -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(