Skip to content

Commit fa0b4f7

Browse files
DX-2209 Enhance our tests by an order of magnitude (#32)
* Add client with custom environment also updated gitignore * Force failure * Set slack notifications to run only on failed tests * Try using the testrunner * revert test runner changes * Remove unittest lib and replace with pytest Force a test failure here by passing in an invalid account Id to trigger a workflow failure * include pytest in requirements * Minor Clean up and revert purposeful failure * Rename files to fit pytest schema * Add POST Messaging Tests * Add messaging media tests * Add calls testing * Update Naming Conventions * tests tests tests * Final tests and cleanup * First crack at bxml * Add WebRTC tests * Fix some PEP8 Stuff * More formatting * Update .github/workflows/validate.yaml Co-authored-by: Mike Hamer <[email protected]> * Update bandwidth/tests/test_bxml.py Co-authored-by: Mike Hamer <[email protected]> * Update bandwidth/tests/test_api.py Co-authored-by: Mike Hamer <[email protected]> * Move print statements higher in the stack so that they actually get printed if an error occurs * Use a random number for MFA verify * Delete test-requirements.txt * Update .gitkeep * Update .gitignore Co-authored-by: Mike Hamer <[email protected]>
1 parent 1210d0d commit fa0b4f7

File tree

12 files changed

+720
-325
lines changed

12 files changed

+720
-325
lines changed
+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#!/bin/sh
22

33
pip install -r requirements.txt
4-
python -m unittest tests.integration.bxml_tests
5-
python -m unittest tests.integration.api_tests
6-
python -m unittest tests.integration.webrtc_bxml_tests
4+
pytest --pyargs bandwidth

.github/workflows/validate.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
USER_NUMBER: ${{ secrets.USER_NUMBER }}
2525
BASE_CALLBACK_URL: ${{ secrets.BASE_CALLBACK_URL }}
2626
- uses: Bandwidth/[email protected]
27-
if: always()
27+
if: failure() && !github.event.pull_request.draft
2828
with:
2929
job-status: ${{ job.status }}
3030
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11

22
.DS_Store
3+
.idea/
4+
*.pyc
5+
.pytest_cache/

.gitkeep

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
README.md
22
bandwidth/voice/bxml/*
33
bandwidth/webrtc/utils/*
4-
tests/integration/*
4+
bandwidth/tests/*
File renamed without changes.

0 commit comments

Comments
 (0)