-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix tests not writing in a tmp_path #70
Conversation
0e1299c
to
34e2582
Compare
tests/test_get_sync.py
Outdated
self.then_same_command_should_not_download() | ||
self.when_I_delete_one_file() | ||
self.when_I_delete_one_file(tmp_path) | ||
self.then_same_command_with_sync_should_download_only_one_file() | ||
|
||
def test_get_sync_delete(self): | ||
self.when_I_get_some_native_files_with_sync() | ||
def test_get_sync_delete(self, tmp_path): | ||
self.when_I_get_some_native_files_with_sync(tmp_path) | ||
self.when_I_add_a_file_locally() | ||
self.then_command_sync_delete_should_propose_to_delete_it_and_delete_it() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the tmp_path
is also missing here, no?
tests/test_get_sync.py
Outdated
def test_get_sync(self): | ||
self.when_I_get_some_native_files_with_sync() | ||
def test_get_sync(self, tmp_path): | ||
self.when_I_get_some_native_files_with_sync(tmp_path) | ||
self.then_same_command_should_not_download() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.then_same_command_should_not_download() | |
self.then_same_command_should_not_download(tmp_path) |
tests/test_get_sync.py
Outdated
self.then_same_command_should_not_download() | ||
self.when_I_delete_one_file() | ||
self.when_I_delete_one_file(tmp_path) | ||
self.then_same_command_with_sync_should_download_only_one_file() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.then_same_command_with_sync_should_download_only_one_file() | |
self.then_same_command_with_sync_should_download_only_one_file(tmp_path) |
tests/test_get_sync.py
Outdated
def test_get_sync_delete(self): | ||
self.when_I_get_some_native_files_with_sync() | ||
def test_get_sync_delete(self, tmp_path): | ||
self.when_I_get_some_native_files_with_sync(tmp_path) | ||
self.when_I_add_a_file_locally() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.when_I_add_a_file_locally() | |
self.when_I_add_a_file_locally(tmp_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
7edb5eb
to
fcbf0c1
Compare
5a4f4e7
to
a0e3476
Compare
@renaudjester review this, it was a 's' that remained from quick typing... but no bigger problems I think. |
tests/test_get_sync.py
Outdated
] | ||
self.output = execute_in_terminal(self.command) | ||
print(self.output.stdout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.