26 Commits

Author SHA1 Message Date
mike cullerton
17590eff91 Fix test_study_no_info test 2022-04-07 17:31:10 -04:00
mike cullerton
1cda8bbafd Add IRB_REVIEW_TYPE to the irb_info call in test_delete_study 2022-03-25 12:58:36 -04:00
mike cullerton
43e70dc75c Add test for study with no IRB Info. 2021-08-17 12:29:29 -04:00
mike cullerton
b78805c188 Added the IDs to the test assertions 2021-08-16 16:37:01 -04:00
mike cullerton
c56a7c2344 Assert that even though we only submit REVIEW_TYPE in the form, both REVIEW_TYPE and REVIEWTYPENAME are set in the database. 2021-07-12 17:11:02 -04:00
mike cullerton
21da1e052b These changes made possible by our change to Postgres for the PB Mock test database.
These tests failed in SQLite.
Modified test_delete_study to ensure existence of data we later delete.
Added test_update_study_from_csv which failed because of issue between SQLite and csv file data
2021-06-24 13:59:37 -04:00
mike cullerton
aae975013b Fixed test to accommodate second document added by code 39 2021-06-24 11:16:16 -04:00
mike cullerton
eaf3ad6e24 Will this build with Travis 2021-06-23 11:38:09 -04:00
mike cullerton
783952ef43 Will this pass Travis CI build? 2021-06-23 11:21:39 -04:00
mike cullerton
a085629d1e Declared study_id explicitly.
Hope this helps a failing Travis CI build
2021-06-22 15:50:12 -04:00
mike cullerton
1c36e470ba Fixed failing test.
Added event and status data to irb_info section.
2021-06-21 14:50:46 -04:00
mike cullerton
be9484760a Fixed test.
The /user_studies route now returns a 200
2021-05-11 17:00:43 -04:00
mike cullerton
584807bb43 Fixed issue with Study Sponsors.
Was using Sponsor IDs that were only available locally.
Now we load test sponsors, and use them.
2021-04-13 12:47:42 -04:00
mike cullerton
feff3f4e6b Added a big test for deleting a study.
We add a study and then add all the different types of information to the study.
We then delete the study and make sure all the associated information is also deleted.
2021-04-13 12:07:34 -04:00
mike cullerton
4e2b79741f Tests were failing because forms were not sending Q_COMPLETE data.
Added mocked Q_COMPLETE data to `add_study` and `test_add_and_edit_study`.
2021-04-06 12:23:13 -04:00
mike cullerton
f4bd576a72 Sample csv file for testing the file upload feature
Attempt at testing the file upload feature.
Test fails because SQLite doesn't accept the date as a string. NEED TO FIND A SOLUTION FOR THIS
2021-03-30 11:00:40 -04:00
mike cullerton
5371d204e5 Added db.drop_all() to the tearDownClass class.
Now we always start tests with a new DB

I tried to add some tests for form validation, but ran into a problem with the csrf_token.
The tests couldn't find it.
This is not a problem using the form for real.
It would be nice to figure this out.
2021-03-25 13:14:17 -04:00
mike cullerton
467e6200be fix for user lookup stuff.
{{ base_href }} needed quotes around it.
Fixed my test for LDAP search so it doesn't have localhost hardcoded :(
2021-02-23 14:01:19 -05:00
Dan Funk
e24c67f417
Merge branch 'dev' into pb-current-user-studies-only-173 2021-02-23 11:02:22 -05:00
mike cullerton
93b87f806f Ticket 209
Alter Study table so that TITLE can be longer than 80 characters
2021-02-22 12:36:10 -05:00
mike cullerton
9b8fd0af81 Test for some redirects we perform for the new code. 2021-02-19 10:55:44 -05:00
mike cullerton
4e95dd6578 Simple test of the Python part of searching LDAP for users 2021-01-06 11:17:41 -05:00
Aaron Louie
45a99d296d Adds environment variable option for loading sponsors via Docker. Prevents duplicate sponsors from being loaded. 2020-08-14 09:39:05 -04:00
Aaron Louie
0e4cd7d130 Adds/edits sponsors for a given study. 2020-08-13 15:19:55 -04:00
Aaron Louie
f0e0b7cd68 Fixes root path bug 2020-05-25 11:41:39 -04:00
Aaron Louie
a633cc7c09 Reorganizes files for consistency between repos. Completely refactors Dockerfile to install from wheel. 2020-05-24 18:30:57 -04:00