Skip to content

Commit fdf1bef

Browse files
committed
fixed test, added mock
1 parent dcdab5b commit fdf1bef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/api/test_files.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ def test_too_big_file(self):
174174

175175
def test_file_is_not_pdf(self):
176176
with patch('app.api.files.check_auth', return_value=True), \
177+
patch('app.api.files.DBManager') as mock_db_manager, \
177178
patch('app.api.files.Config.c', new_callable=PropertyMock) as mock_config, \
178179
app.test_client() as test_client:
179180
mock_config.return_value = Mock(constants=Mock(presentation_file_max_size_in_megabytes='10'), testing=Mock(active=True))

0 commit comments

Comments
 (0)