Skip to content

Commit 30d685d

Browse files
committed
output integration test config
1 parent 23b3fd6 commit 30d685d

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/integration_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install project
2727
run: poetry install --no-interaction
2828
- name: Run integration tests
29-
run: poetry run pytest integration_tests -v
29+
run: poetry run pytest integration_tests -vs
3030
env:
3131
TASKBADGER_ORG: ${{ secrets.TASKBADGER_ORG }}
3232
TASKBADGER_PROJECT: ${{ secrets.TASKBADGER_PROJECT }}

integration_tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ def _load_config():
3131
os.environ.get("TASKBADGER_PROJECT", ""),
3232
os.environ.get("TASKBADGER_API_KEY", ""),
3333
)
34+
print(f"\nIntegration tests configuration:\n {badger.mug.Badger.current.settings}\n")

taskbadger/mug.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ def as_kwargs(self):
2424
"project_slug": self.project_slug,
2525
}
2626

27+
def __str__(self):
28+
return (
29+
f"Settings(base_url='{self.base_url}',"
30+
f" token='{self.token[:6]}...',"
31+
f" organization_slug='{self.organization_slug}',"
32+
f" project_slug='{self.project_slug}')"
33+
)
34+
2735

2836
class Session(ContextDecorator):
2937
def __init__(self):

0 commit comments

Comments
 (0)