We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b99aa2 commit da667d6Copy full SHA for da667d6
tests/test_gridfs.py
@@ -64,6 +64,7 @@ def setUp(self):
64
# make it bigger than 1 gridfs chunk
65
self.myfile = BytesIO(b"a" * 500 * 1024)
66
self.mongo.save_file("myfile.txt", self.myfile)
67
+ self.mongo.save_file("my_other_file.txt", self.myfile, db="other")
68
69
def test_it_404s_for_missing_files(self):
70
with pytest.raises(NotFound):
@@ -74,7 +75,7 @@ def test_it_sets_content_type(self):
74
75
assert resp.content_type.startswith("text/plain")
76
77
def test_it_sends_file_to_another_db(self):
- resp = self.mongo.send_file("myfile.txt", db="other")
78
+ resp = self.mongo.send_file("my_other_file.txt", db="other")
79
80
81
def test_it_sets_content_length(self):
0 commit comments