Skip to content
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

Merged
merged 5 commits into from
Jun 6, 2024
Merged

Conversation

nitreb
Copy link
Contributor

@nitreb nitreb commented May 14, 2024

No description provided.

@nitreb nitreb force-pushed the remove-downloads-folder branch 2 times, most recently from 0e1299c to 34e2582 Compare May 14, 2024 08:47
Comment on lines 9 to 16
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()
Copy link
Collaborator

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?

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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.then_same_command_should_not_download()
self.then_same_command_should_not_download(tmp_path)

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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.then_same_command_with_sync_should_download_only_one_file()
self.then_same_command_with_sync_should_download_only_one_file(tmp_path)

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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.when_I_add_a_file_locally()
self.when_I_add_a_file_locally(tmp_path)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nitreb nitreb force-pushed the remove-downloads-folder branch 3 times, most recently from 7edb5eb to fcbf0c1 Compare May 14, 2024 13:51
@uriii3 uriii3 force-pushed the remove-downloads-folder branch from 5a4f4e7 to a0e3476 Compare June 6, 2024 12:24
@uriii3
Copy link
Collaborator

uriii3 commented Jun 6, 2024

@renaudjester review this, it was a 's' that remained from quick typing... but no bigger problems I think.

]
self.output = execute_in_terminal(self.command)
print(self.output.stdout)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print

@uriii3 uriii3 merged commit 7ef9930 into main Jun 6, 2024
2 checks passed
@uriii3 uriii3 deleted the remove-downloads-folder branch June 6, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants