remove fundz_client in favor of pe numbers repo

This commit is contained in:
dandds
2018-07-30 16:25:15 -04:00
parent fc535ea715
commit cb30ee99ca
6 changed files with 27 additions and 29 deletions

View File

@@ -11,7 +11,6 @@ from atst.sessions import DictSessions
def app(db):
TEST_DEPS = {
"authnid_client": MockApiClient("authnid"),
"fundz_client": MockFundzClient("fundz"),
"sessions": DictSessions(),
"db_session": db
}

View File

@@ -2,7 +2,8 @@ import re
import pytest
import tornado
import urllib
from tests.mocks import MOCK_REQUEST, MOCK_USER, MOCK_VALID_PE_ID
from tests.mocks import MOCK_REQUEST, MOCK_USER
from tests.factories import PENumberFactory
class TestPENumberInForm:
@@ -73,11 +74,14 @@ class TestPENumberInForm:
assert response.headers.get("Location") == "/requests/financial_verification_submitted"
@pytest.mark.gen_test
def test_submit_request_form_with_new_valid_pe_id(self, monkeypatch, http_client, base_url):
def test_submit_request_form_with_new_valid_pe_id(self, db, monkeypatch, http_client, base_url):
self._set_monkeypatches(monkeypatch)
pe = PENumberFactory.create(number="8675309U", description="sample PE number")
db.add(pe)
db.commit()
data = dict(self.required_data)
data['pe_id'] = MOCK_VALID_PE_ID
data['pe_id'] = pe.number
response = yield self.submit_data(http_client, base_url, data)