From 7c48af9b842256704246bbc0744d317b2f51335b Mon Sep 17 00:00:00 2001 From: thelittlefireman Date: Tue, 1 Aug 2017 10:30:04 +0200 Subject: [PATCH] fix codacy-bot warrning --- src/tests/unit/test_app.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/tests/unit/test_app.py b/src/tests/unit/test_app.py index c94fb04..c31ac2d 100644 --- a/src/tests/unit/test_app.py +++ b/src/tests/unit/test_app.py @@ -10,21 +10,23 @@ 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")) app.symlink_force(os.path.join("./","testFile2.txt"),os.path.join("./","link_testFile2.txt")) os.remove(os.path.join("./","testFile2.txt")) os.remove(os.path.join("./","link_testFile2.txt")) - + def test_valid_env(self): key = 'ENV_1' os.environ[key] = 'test'