Skip to content

Commit 09f3202

Browse files
authored
Merge pull request #1 from coreyleavitt/pr/test-cleanup
Test cleanup: remove db_dump.xml artifact
2 parents a011373 + 0085999 commit 09f3202

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/tests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,10 +920,12 @@ def test_set_credentials(self):
920920
self.assertEqual('foobar_user', results.username)
921921

922922
def test_dump_xml(self):
923-
self.kp.dump_xml('db_dump.xml')
924-
with open('db_dump.xml') as f:
923+
dump_file = base_dir / 'db_dump.xml'
924+
self.kp.dump_xml(dump_file)
925+
with open(dump_file) as f:
925926
first_line = f.readline()
926927
self.assertEqual(first_line, '<?xml version=\'1.0\' encoding=\'utf-8\' standalone=\'yes\'?>\n')
928+
dump_file.unlink()
927929

928930
def test_credchange(self):
929931
"""

0 commit comments

Comments
 (0)