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 dcdab5b commit fdf1befCopy full SHA for fdf1bef
tests/api/test_files.py
@@ -174,6 +174,7 @@ def test_too_big_file(self):
174
175
def test_file_is_not_pdf(self):
176
with patch('app.api.files.check_auth', return_value=True), \
177
+ patch('app.api.files.DBManager') as mock_db_manager, \
178
patch('app.api.files.Config.c', new_callable=PropertyMock) as mock_config, \
179
app.test_client() as test_client:
180
mock_config.return_value = Mock(constants=Mock(presentation_file_max_size_in_megabytes='10'), testing=Mock(active=True))
0 commit comments