From 7a5b24b551976df44a7ac8c9bfc06e424ab19981 Mon Sep 17 00:00:00 2001 From: Aminah Burch Date: Tue, 12 Sep 2023 19:59:37 +0300 Subject: [PATCH] feat(api): removes ceramic network test --- api/reader/tests.py | 40 ---------------------------------------- 1 file changed, 40 deletions(-) diff --git a/api/reader/tests.py b/api/reader/tests.py index e679fea4e..d68151061 100644 --- a/api/reader/tests.py +++ b/api/reader/tests.py @@ -5,10 +5,6 @@ from .passport_reader import get_passport -# Location of a Ceramic node that we can read state from -CERAMIC_URL = "https://ceramic.passport-iam.gitcoin.co" - - sample_stamps = [ { "type": ["VerifiableCredential"], @@ -89,42 +85,6 @@ class TestGetStamps: - @pytest.mark.django_db - def test_only_ceramic_stamps(self): - """Make sure cached ceramic stamps are returned when no cached stamps exist in the DB""" - - address = "0x123test" - - with patch( - "reader.passport_reader.get_stamps", - return_value={ - "stamps": [ - { - "provider": s["credentialSubject"]["provider"], - "credential": s, - } - for s in sample_stamps - ] - }, - ): - passport = get_passport( - address, - stream_ids=[ - "1", - "2", - "3", - ], - ) - - stamps = passport["stamps"] - - assert len(sample_stamps) == len(stamps) - for (index, sample_stamp) in enumerate(sample_stamps): - assert ( - stamps[index]["credential"]["issuanceDate"] - == sample_stamp["issuanceDate"] - ) - @pytest.mark.django_db def test_only_cached_stamps(self): """Make sure cached stamps are returned when they exist in the DB and the ceramic stamps are ignored"""