mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
remove filtering of test messages from jobs
this is now down on the api side
This commit is contained in:
committed by
Chris Hill-Scott
parent
ee8ac59d70
commit
e4f0656a32
@@ -129,7 +129,6 @@ def get_dashboard_partials(service_id):
|
||||
immediate_jobs = [
|
||||
add_rate_to_job(job)
|
||||
for job in job_api_client.get_jobs(service_id, limit_days=7, statuses=statuses_to_display)['data']
|
||||
if job['original_file_name'] != current_app.config['TEST_MESSAGE_FILENAME']
|
||||
]
|
||||
service = service_api_client.get_detailed_service(service_id)
|
||||
|
||||
|
||||
@@ -71,7 +71,6 @@ def view_jobs(service_id):
|
||||
jobs_response = job_api_client.get_jobs(service_id, statuses=statuses_to_display, page=page)
|
||||
jobs = [
|
||||
add_rate_to_job(job) for job in jobs_response['data']
|
||||
if job['original_file_name'] != current_app.config['TEST_MESSAGE_FILENAME']
|
||||
]
|
||||
|
||||
prev_page = None
|
||||
|
||||
@@ -231,7 +231,6 @@ def test_should_show_recent_jobs_on_dashboard(
|
||||
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
||||
table_rows = page.find_all('tbody')[2].find_all('tr')
|
||||
|
||||
assert "Test message" not in page.text
|
||||
assert len(table_rows) == 4
|
||||
|
||||
for index, filename in enumerate((
|
||||
|
||||
@@ -27,7 +27,6 @@ def test_get_jobs_should_return_list_of_all_real_jobs(
|
||||
assert page.h1.string == 'Uploaded files'
|
||||
jobs = [x.text for x in page.tbody.find_all('a', {'class': 'file-list-filename'})]
|
||||
assert len(jobs) == 4
|
||||
assert 'Test message' not in jobs
|
||||
|
||||
|
||||
def test_get_jobs_shows_page_links(
|
||||
|
||||
@@ -914,7 +914,6 @@ def mock_get_jobs(mocker, api_user_active):
|
||||
job_status=job_status
|
||||
)
|
||||
for filename, scheduled_for, job_status in (
|
||||
('Test message', '', 'finished'),
|
||||
('export 1/1/2016.xls', '', 'finished'),
|
||||
('all email addresses.xlsx', '', 'pending'),
|
||||
('applicants.ods', '', 'finished'),
|
||||
|
||||
Reference in New Issue
Block a user