curds: Move the os.remove() onto the same line as the existence check

If everything goes well and the test passes, then this line will never
be reached. Let's move it so it doesn't skew the code coverage report.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2019-04-08 14:12:22 -04:00
parent 51ffc23a46
commit a94996b3fa
1 changed files with 1 additions and 2 deletions

View File

@ -11,8 +11,7 @@ testing_temp = os.path.join(testing_data, ".test.file.tmp")
class TestDataModule(unittest.TestCase):
def setUp(self):
if os.path.exists(testing_file):
os.remove(testing_file)
if os.path.exists(testing_file): os.remove(testing_file)
def test_dir(self):
self.assertEqual(data.emmental_data, testing_data)