diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-25 01:05:29 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-25 01:05:29 +0100 |
commit | abdea228995e9b873d0ea60aec275fc8c144f9e9 (patch) | |
tree | 01dfa177ad785a2f6d0f3444190fab249e70d76e /core | |
parent | 48f82aaaca29d7116a3225c04ae088936bb7598d (diff) | |
download | troggle-abdea228995e9b873d0ea60aec275fc8c144f9e9.tar.gz troggle-abdea228995e9b873d0ea60aec275fc8c144f9e9.tar.bz2 troggle-abdea228995e9b873d0ea60aec275fc8c144f9e9.zip |
Allow for slightly different wording in git output
Diffstat (limited to 'core')
-rw-r--r-- | core/TESTS/test_imports.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/TESTS/test_imports.py b/core/TESTS/test_imports.py index 4b35422..f5f7e7c 100644 --- a/core/TESTS/test_imports.py +++ b/core/TESTS/test_imports.py @@ -151,7 +151,6 @@ class SubprocessTest(TestCase): import troggle.settings as settings TROGGLE_PATH = Path(settings.REPOS_ROOT_PATH) / "troggle" for cwd in [settings.EXPOWEB, settings.DRAWINGS_DATA, TROGGLE_PATH]: # add settings.SURVEX_DATA when loser is gitified - sp = subprocess.run([settings.GIT, "status"], cwd=cwd, capture_output=True, text=True) scwd = str(cwd) #print(scwd + ":\n\n" + sp.stderr + '\n\n' + sp.stdout + '\n\nreturn code: ' + str(sp.returncode)) @@ -160,7 +159,7 @@ class SubprocessTest(TestCase): self.assertTrue( sp.returncode == 0, f'{scwd} - git is unhappy') content = sp.stdout - ph = r'Your branch is up to date' + ph = r'Your branch is up[ -]to[ -]date' phmatch = re.search(ph, content) self.assertIsNotNone(phmatch, f"{scwd} - Failed to find expected git output: '" + ph +"'") |