Skip to content

Commit da667d6

Browse files
committed
fix test
1 parent 1b99aa2 commit da667d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_gridfs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def setUp(self):
6464
# make it bigger than 1 gridfs chunk
6565
self.myfile = BytesIO(b"a" * 500 * 1024)
6666
self.mongo.save_file("myfile.txt", self.myfile)
67+
self.mongo.save_file("my_other_file.txt", self.myfile, db="other")
6768

6869
def test_it_404s_for_missing_files(self):
6970
with pytest.raises(NotFound):
@@ -74,7 +75,7 @@ def test_it_sets_content_type(self):
7475
assert resp.content_type.startswith("text/plain")
7576

7677
def test_it_sends_file_to_another_db(self):
77-
resp = self.mongo.send_file("myfile.txt", db="other")
78+
resp = self.mongo.send_file("my_other_file.txt", db="other")
7879
assert resp.content_type.startswith("text/plain")
7980

8081
def test_it_sets_content_length(self):

0 commit comments

Comments
 (0)