Skip to content

Commit 2e0affd

Browse files
committed
fix TestRestApi test
1 parent b20cdc5 commit 2e0affd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/integration/remote/rest_api_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ def setup_class(cls):
3737
remote = Remote("myremote", f"http://127.0.0.1:{cls.server.port}", True, True)
3838
cls.api = RestApiClient(remote, None, requester, config)
3939
cls.api._token = cls.api.authenticate(user="private_user", password="private_pass")
40+
# Necessary for setup_class approach
41+
TestRestApi.api = cls.api
42+
TestRestApi.server = cls.server
4043
yield
4144

4245
cls.server.stop()

0 commit comments

Comments
 (0)