Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.3 KB

File metadata and controls

58 lines (36 loc) · 1.3 KB

Test Configuration

Instructions

  1. Copy the test_config_template.ini file to test_config.ini:

    cp tests/test_config_template.ini tests/test_config.ini
  2. Update the test_config.ini file with the appropriate values for your environment.

  3. The test_config.ini file is ignored by git and should not be committed to the repository.

Running Tests

Installation

First, ensure you have all the necessary dependencies installed. You can install the required packages using pip:

pip install -r requirements.txt
pip install -r requirements-test.txt

Running Tests

To run the tests, you can use the following command:

pytest --env=<environment>

Replace <environment> with one of the following options: local, staging, or prod.

For example, to run the tests in the local environment:

pytest --env=local

Running Isolated Test Suites

To run a specific test file, use the following command:

pytest --env=<environment> path/to/test_file.py

For example, to run the tests in test_publishing.py in the local environment:

pytest --env=local tests/test_publishing.py

Additional Resources

For more information on running tests with pytest, refer to the pytest documentation.