diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-08 18:29:14 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-08 18:29:14 +0000 |
commit | 2c36666d413c3673c76ccdebdff2c0ebd71ef39d (patch) | |
tree | 8e5615b79a60e0de8b040ff5268de758171e821a /core/TESTS | |
parent | b3d9eeecd2fbd79126bc865feadc1676e8f47e31 (diff) | |
download | troggle-2c36666d413c3673c76ccdebdff2c0ebd71ef39d.tar.gz troggle-2c36666d413c3673c76ccdebdff2c0ebd71ef39d.tar.bz2 troggle-2c36666d413c3673c76ccdebdff2c0ebd71ef39d.zip |
tidy test fior git clean
Diffstat (limited to 'core/TESTS')
-rw-r--r-- | core/TESTS/test_imports.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/TESTS/test_imports.py b/core/TESTS/test_imports.py index 60c8a7f..94c7653 100644 --- a/core/TESTS/test_imports.py +++ b/core/TESTS/test_imports.py @@ -228,18 +228,18 @@ class SubprocessTest(TestCase): self.assertTrue(sp.returncode == 0, f"{cwd} - git is unhappy") content = sp.stdout - ph = r"Your branch is up[ -]to[ -]date" + ph = r"nothing to commit, working tree clean" phmatch = re.search(ph, content) msg = f'{cwd} - Failed to find expected git output: "{ph}"' self.assertIsNotNone(phmatch, msg) - ph1 = r"no changes added to commit" - phmatch1 = re.search(ph1, content) - ph2 = r"nothing to commit" - phmatch2 = re.search(ph2, content) - phmatch = phmatch1 or phmatch2 - msg = f'{cwd} - Failed to find expected git output: "{ph1}" or "{ph2}"' - self.assertIsNotNone(phmatch, msg) + # ph1 = r"no changes added to commit" + # phmatch1 = re.search(ph1, content) + # ph2 = r"nothing to commit" + # phmatch2 = re.search(ph2, content) + # phmatch = phmatch1 or phmatch2 + # msg = f'{cwd} - Failed to find expected git output: "{ph1}" or "{ph2}"' + # self.assertIsNotNone(phmatch, msg) def test_loser_survex_status(self): """Expects no failures of survex files""" |