diff --git a/.github/workflows/online.yml b/.github/workflows/online.yml index 7b30b16..a777bd5 100644 --- a/.github/workflows/online.yml +++ b/.github/workflows/online.yml @@ -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 diff --git a/tests/integrated/test_integrated.py b/tests/integrated/test_integrated.py index d0c8d21..4871ca9 100644 --- a/tests/integrated/test_integrated.py +++ b/tests/integrated/test_integrated.py @@ -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"]