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
overwrite an output file with -O, (FeedExporter updated) #4859
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4859 +/- ##
=======================================
Coverage 87.86% 87.86%
=======================================
Files 160 160
Lines 9749 9749
Branches 1439 1439
=======================================
Hits 8566 8566
Misses 926 926
Partials 257 257
|
tests/test_commands.py
Outdated
@@ -680,9 +680,14 @@ def start_requests(self): | |||
) | |||
return [] | |||
""" | |||
with open(os.path.join(self.cwd, "example.json"), "w") as 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.
file
is a built-in in Python, should we change it to something like fp
?
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.
Ok. I renamed 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.
Thank you! |
This didn't close the linked issues, is there anything else needed for them? |
I believe we simply forgot to set the pull request description to do it. Both are closed now. |
related to #4857 and #4845
FeedExporter._get_storage()
updated -feed_options
successfully passed to Storage objectsCrawlCommandTest.test_overwrite_output
andRunSpiderCommandTest.test_overwrite_output
aimed to test-O
arg - updated.