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:
parent
51ffc23a46
commit
a94996b3fa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue