diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7caddf1..271bea7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,7 +58,7 @@ pytest: script: - > docker run - -e TEST_DATABASE_URL=postgres://postgres:postgres@$POSTGRES_PORT_5432_TCP_ADDR:5432/postgres - -e REDIS_URL=redis://$REDIS_PORT_6379_TCP_ADDR:6379/0 + -e TEST_DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres + -e REDIS_URL=redis://redis:6379/0 $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA pytest -v --cov phoenix diff --git a/phoenix/tests/slackbot/test_utils.py b/phoenix/tests/slackbot/test_utils.py index dae82af..14b0185 100644 --- a/phoenix/tests/slackbot/test_utils.py +++ b/phoenix/tests/slackbot/test_utils.py @@ -99,7 +99,7 @@ def test_join_channels(mocked_api_call): channels_to_join = ["channel-x", "test-channel", "channel-a"] utils.join_channels(channels_to_join) test_called_with = ( - "call('conversations.list', cursor='', limit=200)", + "call('conversations.list', limit=200, cursor='')", "call('conversations.invite', channel='123sd', users='unittest-bot-id')", "call('conversations.invite', channel='45fg', users='unittest-bot-id')", )