<commit_before>#! /bin/bash

# PURPOSE: used to test that the DRF app is running inside the Docker container
# Can be used in Travis build or on local developer machine

echo  Running test_proj.sh...

# Start the container separately to avoid the ImportError on project_config we experience when running "docker-compose run python manage.py test"
docker-compose -f budget_proj/docker-compose.yml start budget-service
# Run all configured unit tests inside the Docker container
docker-compose -f budget_proj/docker-compose.yml exec budget-service python manage.py test<commit_msg>third attempt with env.sh - back to single-step container build-and-test<commit_after>#! /bin/bash

# PURPOSE: used to test that the DRF app is running inside the Docker container
# Can be used in Travis build or on local developer machine

echo  Running test_proj.sh...

# Run all configured unit tests inside the Docker container
docker-compose -f budget_proj/docker-compose.yml run budget-service python manage.py test
{'fraction_non_alphanumeric': 0.06, 'fraction_numerical': 0.0, 'mean_word_length': 4.561111111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2857136', 'n_tokens_mistral': 283, 'n_tokens_neox': 259, 'n_words': 125}