(self, mock_db_connection)
| 25 | |
| 26 | @mock.patch.object(db.settings, 'db_connection') |
| 27 | def test_requires_https_by_default(self, mock_db_connection): |
| 28 | with tempfile.NamedTemporaryFile() as temp_file: |
| 29 | mock_db_connection.get.return_value = db.store.create_or_open( |
| 30 | temp_file.name) |
| 31 | settings = db.settings.Settings() |
| 32 | self.assertEqual(True, settings.requires_https()) |
| 33 | |
| 34 | @mock.patch.object(db.settings, 'db_connection') |
| 35 | def test_can_change_https_requirement(self, mock_db_connection): |
nothing calls this directly
no test coverage detected