Skip to content

Commit 7ba8d82

Browse files
committed
Fix command test new folder paths and relative import beyond toplevel package in tests
1 parent 0ceb25c commit 7ba8d82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

__init__.py

Whitespace-only changes.

tests/test_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def setUpClass(self):
2525
- get the temporary test directory
2626
- and initializes the command stack.
2727
"""
28-
os.mkdir('behavioral/test_command')
29-
open('behavioral/test_command/foo.txt', 'w').close()
28+
os.mkdir('tests/test_command')
29+
open('tests/test_command/foo.txt', 'w').close()
3030
self.__get_test_directory()
3131
self.command_stack = []
3232
self.command_stack.append(MoveFileCommand(os.path.join(self.test_dir, 'foo.txt'), os.path.join(self.test_dir, 'bar.txt')))
@@ -54,7 +54,7 @@ def tearDownClass(self):
5454
"""
5555
Remove the temporary directory /test_command and its content.
5656
"""
57-
shutil.rmtree('behavioral/test_command')
57+
shutil.rmtree('tests/test_command')
5858

5959
if __name__ == "__main__":
6060
unittest.main()

0 commit comments

Comments
 (0)