diff --git a/tests/server/blueprints/cases/test_cases_views.py b/tests/server/blueprints/cases/test_cases_views.py
index <HASH>..<HASH> 100644
--- a/tests/server/blueprints/cases/test_cases_views.py
+++ b/tests/server/blueprints/cases/test_cases_views.py
@@ -786,7 +786,7 @@ def test_omimterms(app, test_omim_term):
         assert resp.status_code == 200
 
         # containing the OMIM term
-        assert test_omim_term["_id"] in str(resp.data)
+        assert resp.mimetype == "application/pdf"
 
 
 def _test_beacon_submit(client, case_obj, vcf_files):
Update tests/server/blueprints/cases/test_cases_views.py