Detects compliance violations by sellers
- Install Python 3
- Create a virtual python environment and activate it
- From the root directory (the directory where
README.md
lives), runpython3 -m pip install -r requirements.txt -r requirements_test.txt
to install required python packages. - Run
python3 setup.py develop
to configure your local environment. - From the root directory (the directory where
README.md
lives), runtouch .env
in the CLI - Run
echo "MVM_API_BEARER_TOKEN=your_bearer_token" >> .env
, replacingyour_bearer_token
with your MVM API Bearer Token (To find tokens, in the MVM UI Admin view navigation bar, hover over three dots on the right of the navigation bar and click "Multivendor API") - You are now ready to run the bot! To run the check use
python3 compliance_bot/epr_violations_check.py
. To run tests, usepytest
orpytest tests/some_specific_test_file
.
- Add unit tests
- Dockerize
- Test this code when there are a large number of stores (multiple pages)
- Better exception handling for API errors