Skip to content

Commit 8a33013

Browse files
committed
rename to find_xx_from_serology
1 parent bfb4c27 commit 8a33013

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pyard/ard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def find_associated_antigen(self, serology) -> str:
643643
return self.serology_mapping.find_associated_antigen(serology)
644644

645645
@functools.lru_cache()
646-
def find_associated_xx_from_serology(self, serology):
646+
def find_xx_from_serology(self, serology):
647647
if self.is_serology(serology):
648648
return db.find_xx_for_serology(self.db_connection, serology)
649649
raise InvalidAlleleError(f"{serology} is not a valid serology")

tests/steps/redux_allele.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ def step_impl(context, validity):
134134

135135
@when("finding the XX version of the serology")
136136
def step_impl(context):
137-
context.xx_version = context.ard_non_strict.find_associated_xx_from_serology(
138-
context.allele
139-
)
137+
context.xx_version = context.ard_non_strict.find_xx_from_serology(context.allele)
140138

141139

142140
@then("the XX version is {XX}")

0 commit comments

Comments
 (0)