MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / test_requires_https_by_default

Method test_requires_https_by_default

app/db/settings_test.py:27–32  ·  view source on GitHub ↗
(self, mock_db_connection)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

requires_httpsMethod · 0.95

Tested by

no test coverage detected