simpler, faster run just failing test

This commit is contained in:
Paul Gauthier 2023-07-05 14:57:35 -07:00
parent e107819085
commit f3af05f3ee
2 changed files with 1 additions and 8 deletions

View file

@ -19,10 +19,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install universal ctags
run: |
choco install universal-ctags
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@ -30,4 +26,4 @@ jobs:
- name: Run tests
run: |
python -m unittest discover -s tests
python -m unittest discover -s tests -k test_main_with_empty_git_dir_new_file -v

View file

@ -34,9 +34,6 @@ class TestMain(TestCase):
self.assertTrue(os.path.exists("foo.txt"))
def test_main_with_empty_git_dir_new_file(self):
tempdir = tempfile.mkdtemp()
os.chdir(tempdir)
subprocess.run(["git", "init"])
subprocess.run(["git", "config", "user.email", "dummy@example.com"])
subprocess.run(["git", "config", "user.name", "Dummy User"])