fix codacy-bot warrning

This commit is contained in:
thelittlefireman 2017-08-01 10:30:04 +02:00 committed by GitHub
parent e1d6e3cdbe
commit 7c48af9b84

View file

@ -10,14 +10,16 @@ from src import app
class TestApp(TestCase):
"""Unit test class to test other methods in the app."""
"""create symlink"""
#create symlink
@classmethod
def test_symlink_correct(self):
os.mknod(os.path.join("./","testFile1.txt"))
app.symlink_force(os.path.join("./","testFile1.txt"),os.path.join("./","link_testFile1.txt"))
os.remove(os.path.join("./","testFile1.txt"))
os.remove(os.path.join("./","link_testFile1.txt"))
""" link already exist"""
#link already exist
@classmethod
def test_symlink_already_exist(self):
os.mknod(os.path.join("./","testFile2.txt"))
os.mknod(os.path.join("./","link_testFile2.txt"))