Skip to content

Commit 6651301

Browse files
committed
Fix tests
1 parent 011c124 commit 6651301

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/posit/connect/test_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_unknown(self):
6464
json={},
6565
)
6666

67-
ctx = Context(Client("http://connect.example"))
67+
ctx = Context(Client("http://connect.example", "12345"))
6868

6969
assert ctx.version is None
7070

@@ -75,7 +75,7 @@ def test_known(self):
7575
json={"version": "2024.09.24"},
7676
)
7777

78-
ctx = Context(Client("http://connect.example"))
78+
ctx = Context(Client("http://connect.example", "12345"))
7979

8080
assert ctx.version == "2024.09.24"
8181

tests/posit/connect/test_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_owner_guid(self):
3434
class TestGroupMembers:
3535
@classmethod
3636
def setup_class(cls):
37-
cls.client = Client("https://connect.example")
37+
cls.client = Client("https://connect.example", "12345")
3838
guid = "6f300623-1e0c-48e6-a473-ddf630c0c0c3"
3939
fake_item = load_mock_dict(f"v1/groups/{guid}.json")
4040
ctx = Context(cls.client)

tests/posit/connect/test_users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_groups(self):
161161
json=load_mock_dict(f"v1/groups/{guid}/members.json"),
162162
)
163163

164-
client = Client("https://connect.example/")
164+
client = Client("https://connect.example/", "12345")
165165
users = client.users.find()
166166
assert len(users) == 2 + 2
167167

0 commit comments

Comments
 (0)