From 4cc328ef78c7b8108d7623fdd4fcae5294317f2e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 18 Jan 2023 14:59:35 +0300 Subject: auth: Fix tests after enforcing FOREIGN KEY constraint Fix a number of tests and fixtures that were not conforming to the FOREIGN KEY constraints: * Each test that creates a new "object" needs to clean up after itself * Each fixture that sets up test data needs to clean up after itself --- gn3/api/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn3/api/search.py') diff --git a/gn3/api/search.py b/gn3/api/search.py index 4ba2590..3cdee67 100644 --- a/gn3/api/search.py +++ b/gn3/api/search.py @@ -153,7 +153,7 @@ def apply_si_suffix(location: str) -> int: return int(float(location[:-1])*10**suffixes.get(location[-1].lower(), 0)) -def parse_location_field(lifted_species: str, species_prefix: str, +def parse_location_field(lifted_species: str, species_prefix: str, # pylint: disable=[too-many-arguments] chromosome_prefix: str, location_slot: int, liftover_function: IntervalLiftoverFunction, query: bytes) -> xapian.Query: -- cgit v1.2.3