jpitts-uva
90773f2887
Modified PB_MIN_DATE
2022-10-17 13:45:34 -04:00
jpitts-uva
8e3c2ab593
split creation date tests into 2 tests
2022-09-30 14:59:17 -04:00
jpitts-uva
3b5c7eb152
Split test_pb_startdate into two tests: test_pb_older_creation_date_filter and test_pb_recent_creation_date_filter.
2022-09-30 13:50:52 -04:00
jpitts-uva
33016005c2
Filtering of studies is now by creation date instead of modified date.
2022-09-15 15:36:17 -04:00
mike cullerton
138dfc220d
Tests expect 1 record now
...
Add test for error state when study is not yet uploaded
2022-04-07 14:40:47 -04:00
mike cullerton
ed5689c1b9
Fixed test_info_script_documents
to use a mocked call to required_docs.
...
Fixed `test_get_required_docs` to use new required_docs syntax
study_details now in a list, so we look at the first item in the list
2021-11-08 10:00:19 -05:00
mike cullerton
95c710768e
Fixed test to reflect adding REVIEW_TYPE to mocked study_details PB data
2021-07-09 10:40:18 -04:00
mike cullerton
2cb2874a49
Added test and json data for new check_study pb mock api endpoint
2021-07-02 15:26:39 -04:00
mike cullerton
b0fcb09581
Fixed test to correspond to the changes in the mock data
2021-05-14 12:35:36 -04:00
mike cullerton
576f3a661d
Removed print statement used while debugging.
2021-05-03 14:52:01 -04:00
mike cullerton
1bcf4ea02e
Test and mock data for new get_irb_info
service in ProtocolBuilderService
2021-05-01 15:23:07 -04:00
mike cullerton
61f37ff894
Changed the order of imports so I could debug a failing test
2021-04-05 13:16:43 -04:00
Aaron Louie
8dcb598a24
Adds unit test for ProtocolBuilderService.get_sponsors
2020-08-25 11:08:13 -04:00
Dan Funk
6a79fb3581
There may be multiple investigators of the same type that come back from the protocol builder, adding some tests and additional code to handle this, but still keep the list flat, currently appends a number to the investigator type when there is more than one.
2020-07-07 17:16:33 -04:00
Dan Funk
7869fa596e
Protocol Builder isn't disabled on the dcos servers, trying to figure out why, and assure it isn't some sort of weird race condition.
2020-05-26 22:42:49 -04:00
Dan Funk
503c1c8f18
Allow disabling the Protocol Builder
...
PB_ENABLED can be set to false in the configuration (either in a file called instance/config.py, or as an environment variable)
Added a check in the base_test, to assure that we are always running tests with the test configuration, and bail out otherwise. Setting TESTING=true as an environment variable will get this, but so well the correct ordering of imports. Just be dead certain the first file every test file imports is base_test.py.
Aaron was right, and we call the Protocol Builder in all kinds of awful places. But we don't do this now. So Carlos, you should have the ability to reuse a lot of the logic in the study_service now.
I dropped the poorly named "study-update" endpoint completely. We weren't using it. POST and PUT to Study still work just fine for doing exactly that.
All the tests now run and pass with the Protocol builder disabled. Tests that specifically check PB behavior turn it back on for the test, or mock it out.
2020-05-22 14:37:49 -04:00
Dan Funk
12eb039bc9
Server isn't erroring out, but can't find the lookup table id in the database, so trying to use the in-memory model instead, to give things time to get to the database. Really unsure what is happening here. Hard to see in the database.
2020-04-24 07:01:32 -04:00
Aaron Louie
d23b5e747b
Replaces deprecated assertEquals with assertEqual
2020-04-06 18:15:32 -04:00
Dan Funk
60a10bb688
Marshmallow isn't the right tool when dealing with large models with lots of null values. Rather than fight the process of mamaging the Study Details, I'm letting that fall through, and we can test on an individual value or maybe set up a constants array when that becomes meaningful.
2020-04-03 16:24:38 -04:00
Aaron Louie
27d7afb656
Adds Protocol Builder models and schemas. Reorganizes and cleans up some files.
2020-02-27 09:54:46 -05:00
Dan Funk
2cc6010c8d
Protocol builder connections
2020-02-20 13:30:04 -05:00