Daniel Garcia
21b1a32b80
7 gh#ofek/hatch-vcs#9 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch_vcs?expand=0&rev=5
15 lines
550 B
Diff
15 lines
550 B
Diff
diff --git a/tests/test_build.py b/tests/test_build.py
|
|
index 2d719a9..6b907ef 100644
|
|
--- a/tests/test_build.py
|
|
+++ b/tests/test_build.py
|
|
@@ -75,7 +75,8 @@ def test_write(new_project_write):
|
|
assert os.path.isfile(version_file)
|
|
|
|
lines = read_file(version_file).splitlines()
|
|
- assert lines[3] == "version = '1.2.3'"
|
|
+ assert lines[3].startswith(('version =', '__version__ ='))
|
|
+ assert lines[3].endswith("version = '1.2.3'")
|
|
|
|
|
|
@pytest.mark.skipif(sys.version_info[0] == 2, reason='Depends on fix in 6.4.0 which is Python 3-only')
|