aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-12 00:07:33 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-12 00:07:33 -0400
commit84bae5eed1854d0cb4d701f7f9f87d86365e51a7 (patch)
tree2ab50b9dfa6ab6fdc7bac56bee2de9d557b36b52 /tests
parentc2fb852e011c898f1ebf2eb8cca16a8b6265fb8f (diff)
downloaddelivery_merge-84bae5eed1854d0cb4d701f7f9f87d86365e51a7.tar.gz
Just work
Diffstat (limited to 'tests')
-rw-r--r--tests/test_merge.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_merge.py b/tests/test_merge.py
index f604348..b6a885f 100644
--- a/tests/test_merge.py
+++ b/tests/test_merge.py
@@ -135,10 +135,10 @@ class TestMerge:
assert contents.startswith('<?xml') and contents.endswith('</testsuite>')
def test_force_xunit2_no_config(self):
- assert not os.path.exists('pytest.ini')
merge.force_xunit2()
assert os.path.exists('pytest.ini')
assert 'junit_family = xunit2' in open('pytest.ini').read()
+ os.remove('pytest.ini')
def test_force_xunit2_no_setup(self):
open('pytest.ini', 'w+').write('')
@@ -146,6 +146,7 @@ class TestMerge:
assert not os.path.exists('setup.cfg')
assert os.path.exists('pytest.ini')
assert 'junit_family = xunit2' in open('pytest.ini').read()
+ os.remove('pytest.ini')
def test_force_xunit2_no_pytest(self):
open('setup.cfg', 'w+').write('')
@@ -153,4 +154,5 @@ class TestMerge:
assert not os.path.exists('pytest.ini')
assert os.path.exists('setup.cfg')
assert 'junit_family = xunit2' in open('setup.cfg').read()
+ os.remove('setup.cfg')