MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / test_cannot_delete_unknown_user

Method test_cannot_delete_unknown_user

app/auth_test.py:134–139  ·  view source on GitHub ↗
(self, mock_get_db)

Source from the content-addressed store, hash-verified

132
133 @mock.patch.object(db.users.db_connection, 'get')
134 def test_cannot_delete_unknown_user(self, mock_get_db):
135 with tempfile.NamedTemporaryFile() as temp_file:
136 mock_get_db.return_value = db.store.create_or_open(temp_file.name)
137
138 with self.assertRaises(db.users.UserDoesNotExistError):
139 auth.delete_account('pilot')
140
141 @mock.patch.object(video_service, 'restart', do_nothing)
142 @mock.patch.object(db.users.db_connection, 'get')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected