diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 49120af..3c3e987 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,7 +1,13 @@ ## Testing -Validate changes to the setup by running the integration test: +### Running Tests with Pytest -```shell -./integration-test.sh +We use pytest for running tests. To run the tests: + +1) Ensure that you are in the root directory of the project. +2) Run the following command: +```bash +pytest ``` + +This will automatically discover and run all test cases in the project. diff --git a/requirements-dev.txt b/requirements-dev.txt index 42bf67b..62b4166 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,3 +5,4 @@ pytest-rerunfailures>=11.0 pytest-sentry>=0.1.11 httpx>=0.25.2 beautifulsoup4>=4.7.1 +cryptography>=43.0.3 diff --git a/sentry-admin.sh b/sentry-admin.sh index d162c82..d775e90 100755 --- a/sentry-admin.sh +++ b/sentry-admin.sh @@ -22,8 +22,7 @@ on the host filesystem. Commands that write files should write them to the '/sen # Actual invocation that runs the command in the container. invocation() { - output=$($dc run -v "$VOLUME_MAPPING" --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web "$@" 2>&1) - echo "$output" + $dc run -v "$VOLUME_MAPPING" --rm -T -e SENTRY_LOG_LEVEL=CRITICAL web "$@" 2>&1 } # Function to modify lines starting with `Usage: sentry` to say `Usage: ./sentry-admin.sh` instead.