Skip to content

Commit

Permalink
feat: tests for most code
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaquiery authored Nov 11, 2024
1 parent 0678e02 commit 3ecf835
Show file tree
Hide file tree
Showing 12 changed files with 2,569 additions and 251 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ __pycache__/

.terraform/
secrets.tfvars
tests/fixtures/*.csv
tests/trd_cli.log
**/trd_cli.log
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
## The following requirements were added by pip freeze:
click==8.1.7
pandas==2.2.3
pycap==2.6.0
pydantic==2.9.2
requests==2.32.3
6 changes: 6 additions & 0 deletions tests/fixtures/patient.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"id"|"nhsnumber"|"lastresponse"|"birthdate"|"gender"|"contactemail"|"mobilenumber"|"userid"|"created"|"updated"|"active"|"firstname"|"lastname"|"deceasedboolean"|"deceaseddatetime"|"integrationid"|"tenantid"|"preferredcontact"|"dashboardquestionnaireid"|"custompatientid"|"schedulelock"
1255217154|9910362813|2024-11-04 12:59:24.972|1949-11-04|1|[email protected]|+44 7000 000000|675549169|2024-11-04 12:58:56.540|2024-11-04 12:59:24.973|true|Besty|Tester||||6|0|||
1975714028|4389162012|2024-08-15 16:56:56.468|2018-08-02|0|[email protected]||185482763|2024-08-15 14:43:12.296|2024-08-15 16:56:56.468|true|Jamie|Emery||||6|0|||
909576977|1234567814|2024-11-05 12:08:48.037|2001-08-06|1|[email protected]|+44 7000 000000|1214789337|2024-08-06 12:02:14.311|2024-11-05 12:08:48.040|true|Demo|McTest||||6|0|||2024-11-04 11:47:00.395
1088556167|3990266004||2018-09-06|0|[email protected]||843783021|2024-09-12 14:12:34.111|2024-09-12 14:12:34.111|true|Jim|TT||||6|0|||
2140152908|9038952813||1990-10-11|1|[email protected]|+44 7966 968554|1876560713|2024-10-11 11:26:21.387|2024-10-11 11:26:21.387|true|Testpp|Testpp||||6|1|||
39 changes: 39 additions & 0 deletions tests/fixtures/questionnaireresponse.csv

Large diffs are not rendered by default.

Loading

0 comments on commit 3ecf835

Please sign in to comment.