Skip to content

Commit

Permalink
Add spawner.api mock
Browse files Browse the repository at this point in the history
  • Loading branch information
athornton committed Apr 1, 2022
1 parent 4d03b8c commit d605b76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/resourcemgr_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ async def test_create_kubernetes_resources(
spawner.hub.base_url = "/nb/hub/"
spawner.user = Mock(spec=User)
spawner.user.name = "someuser"
spawner.api = kubernetes_api_mock
auth_state = {
"token": "user-token",
"uid": 1234,
Expand Down

0 comments on commit d605b76

Please sign in to comment.