Skip to content

Commit

Permalink
integrated test v1
Browse files Browse the repository at this point in the history
  • Loading branch information
haochenpan committed Dec 12, 2023
1 parent 23631a6 commit eb353eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/online.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- run: python -m pip install -U pip setuptools
- run: python -m pip install -U tox pytest
- name: Run tox
run: tox
run: tox -e integrated
11 changes: 6 additions & 5 deletions tests/integrated/test_integrated.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
from pprint import pprint


def test_always_true():
def test_intermediary():
c = GlobusClient()
tokens = c.login_manager._token_storage.get_token_data(DIASPORA_RESOURCE_SERVER)
assert tokens is not None
assert (
tokens["refresh_token"]
== "Ag7eq0l80vG9Y9dWN0MqEoVqmnzE62bwkyYKQQD3KrNK3y8jXXhoUXekPNrMvGPxW0BwJGkejWb1yJ80Gw3y46wE8QPMp"
)

topic = "tox-topic-" + c.subject_openid[-12:]
assert c.register_topic(topic)["status"] in ["success", "no-op"]

assert topic in c.list_topics()["topics"]

0 comments on commit eb353eb

Please sign in to comment.