Skip to content

Commit 0253da3

Browse files
committed
remove skipped test
1 parent b3df9a3 commit 0253da3

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

delta_backend/tests/test_convert_to_flat_json.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def test_schema_parser_exception(self, mock_schema_parser):
231231
converter.getErrorRecords()[0]["message"],
232232
)
233233
self.assertEqual(converter.getErrorRecords()[0]["code"], 0)
234-
@unittest.skip("Skip all tests in this class")
234+
235235
@patch("Converter.ConversionChecker")
236236
def test_conversion_checker_exception(self, mock_conversion_checker):
237237
# Mock ConversionChecker to raise an exception
@@ -247,7 +247,7 @@ def test_conversion_checker_exception(self, mock_conversion_checker):
247247
converter.getErrorRecords()[0]["message"],
248248
)
249249
self.assertEqual(converter.getErrorRecords()[0]["code"], 0)
250-
@unittest.skip("Skip all tests in this class")
250+
251251
@patch("Converter.SchemaParser.getConversions")
252252
def test_get_conversions_exception(self, mock_get_conversions):
253253
# Mock getConversions to raise an exception
@@ -294,7 +294,7 @@ def test_conversion_exceptions(self, mock_get_key_value, mock_get_conversions):
294294
)
295295
self.assertEqual(error_records[0]["code"], 0)
296296

297-
@unittest.skip("Skip all tests in this class")
297+
298298
@patch("ConversionChecker.LookUpData")
299299
def test_convert_to_not_empty(self, MockLookUpData):
300300

@@ -308,7 +308,7 @@ def test_convert_to_not_empty(self, MockLookUpData):
308308
result = checker._convertToNotEmpty(None, "fieldName", "", False, True)
309309
self.assertEqual(result, "")
310310

311-
@unittest.skip("Skip all tests in this class")
311+
312312
@patch("ConversionChecker.LookUpData")
313313
def test_convert_to_nhs_number(self, MockLookUpData):
314314

@@ -434,7 +434,7 @@ def clear_table(self):
434434
result = self.table.scan()
435435
items = result.get("Items", [])
436436

437-
@unittest.skip("Skip all tests in this class")
437+
438438
class TestPersonForeNameToFlatJson(unittest.TestCase):
439439
def test_person_forename_multiple_names_official(self):
440440
"""Test case where multiple name instances exist, and one has use=official with period covering vaccination date"""
@@ -536,7 +536,6 @@ def _run_test(self, expected_forename):
536536
flat_json = self.converter.runConversion(request_json_data, False, True)
537537
self.assertEqual(flat_json[0]["PERSON_FORENAME"], expected_forename)
538538

539-
@unittest.skip("Skip all tests in this class")
540539
class TestPersonSurNameToFlatJson(unittest.TestCase):
541540

542541
def test_person_surname_multiple_names_official(self):
@@ -625,7 +624,6 @@ def _run_test_surname(self, expected_forename):
625624
flat_json = self.converter.runConversion(request_json_data, False, True)
626625
self.assertEqual(flat_json[0]["PERSON_SURNAME"], expected_forename)
627626

628-
@unittest.skip("Skip all tests in this class")
629627
class TestPersonPostalCodeToFlatJson(unittest.TestCase):
630628
def test_person_postal_code_single_address(self):
631629
"""Test case where only one address instance exists"""
@@ -714,7 +712,6 @@ def _run_postal_code_test(self, expected_postal_code):
714712
flat_json = self.converter.runConversion(request_json_data, False, True)
715713
self.assertEqual(flat_json[0]["PERSON_POSTCODE"], expected_postal_code)
716714

717-
@unittest.skip("Skip all tests in this class")
718715
class TestPersonSiteCodeToFlatJson(unittest.TestCase):
719716
def test_site_code_single_performer(self):
720717
"""Test case where only one performer instance exists"""
@@ -833,7 +830,6 @@ def _run_site_code_test(self, expected_site_code):
833830
flat_json = self.converter.runConversion(request_json_data, False, True)
834831
self.assertEqual(flat_json[0].get("SITE_CODE"), expected_site_code)
835832

836-
@unittest.skip("Skip all tests in this class")
837833
class TestPersonSiteUriToFlatJson(unittest.TestCase):
838834
def test_site_uri_single_performer(self):
839835
"""Test case where only one performer instance exists"""
@@ -924,7 +920,6 @@ def _run_site_uri_test(self, expected_site_code):
924920
flat_json = self.converter.runConversion(request_json_data, False, True)
925921
self.assertEqual(flat_json[0].get("SITE_CODE_TYPE_URI"), expected_site_code)
926922

927-
@unittest.skip("Skip all tests in this class")
928923
class TestPractitionerForeNameToFlatJson(unittest.TestCase):
929924
def test_practitioner_forename_multiple_names_official(self):
930925
"""Test case where multiple name instances exist, and one has use=official with period covering vaccination date"""
@@ -1040,7 +1035,6 @@ def _run_practitioner_test(self, expected_forename):
10401035
flat_json = self.converter.runConversion(request_json_data, False, True)
10411036
self.assertEqual(flat_json[0]["PERFORMING_PROFESSIONAL_FORENAME"], expected_forename)
10421037

1043-
@unittest.skip("Skip all tests in this class")
10441038
class TestPractitionerSurNameToFlatJson(unittest.TestCase):
10451039
def test_practitioner_surname_multiple_names_official(self):
10461040
"""Test case where multiple name instances exist, and one has use=official with period covering vaccination date"""

delta_backend/tests/test_delta.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from src.delta import send_message, handler # Import after setting environment variables
1212
import json
1313

14-
@unittest.skip("Skip all tests in this class")
1514
class DeltaTestCase(unittest.TestCase):
1615

1716
def setUp(self):

0 commit comments

Comments
 (0)