Open ryanfb opened 9 years ago
Sorry yes this is one I still need to make a mock for.
No worries, sounds good. I assume the tests in test/functional/dmm_api_controller_test.rb
also need some sort of mocking, as I get various similar errors e.g.:
#<RuntimeError: Unregistered CITE Collection for urn:cite:perseus:testcoll>
/Users/ryan/source/dc3/sosol/app/models/alignment_cite_identifier.rb:227:in `api_create'
/Users/ryan/source/dc3/sosol/app/controllers/dmm_api_controller.rb:70:in `api_item_create'
For now, without those two functional tests (CtsPublicationsControllerTest
and DmmApiControllerTest
), I have tests passing locally.
In
CtsPublicationsController#create_from_agent
calls, empty passwords inconfig/agents.yml
result in a suppressed#<MediawikiApi::LoginError: EmptyPass>
error (which causes the rest of the tests to error):