FHIRType / workshop

Healthcare Provider Data API
GNU General Public License v3.0
0 stars 0 forks source link

DEPLOYMENT: Test environment initial set up #5

Closed trentonyo closed 10 months ago

trentonyo commented 10 months ago

Overview

🧪 This branch sets up the initial test environment. There is one placeholder test currently, all tests will be located in /tests/ and must be named as test_[DESCRIPTIVE NAME].py, since these functions are never called in production we can (and will) be incredibly verbose in their names; for example, the name test_search_for_practitioner_by_npi is an excellent name.

🚧 There is an example of how to include the fhirtype package in a test at /tests/test_basic.py.

🗺️ This branch also involved a lot of changes to the directory structure, please be aware of this.

Deployment pipeline

The pipeline is currently laid out as such:

Set up linux environment > Include secret environment variables > install dependencies in environment > Lint with flake8 > Generate config files via _configMaker.py > Run all tests via pytest