You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Using the FitKitGeneration Utility](#using-the-fitkitgeneration-utility)
10
+
-[Required Arguments](#required-arguments)
11
+
-[Example Usage](#example-usage)
12
+
-[FitKitGeneration Specific Functions](#fitkitgeneration-specific-functions)
13
+
14
+
## Using the FitKitGeneration Utility
15
+
16
+
To use the fit_kit_generation Utility, import the `fit_kit_generation` module into your test file and call it's methods from within your tests, as required
17
+
18
+
## Required Arguments
19
+
20
+
The methods in this utility require specific arguments. Refer to the docstrings in the `fit_kit_generation.py` file for details on required and optional arguments.
21
+
22
+
## Example Usage
23
+
24
+
from utils.fit_kit_generation import FitKitGenerator
The FitKitGeneration Utility includes methods for generating, validating, and managing FIT test kits. These methods are designed to streamline the process of creating test kits for various scenarios. Below are some key functions:
Copy file name to clipboardExpand all lines: utils/fit_kit_generation.py
+47-12Lines changed: 47 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,25 @@ def create_fit_id_df(
8
8
tk_type_id: int, hub_id: int, no_of_kits_to_retrieve: int
9
9
) ->pd.DataFrame:
10
10
"""
11
-
The first step here is to get the relevant test data for compartment 2
12
-
Then it calculates the check digit for each kit id retrieved
13
-
Finally it adds the final part on the end (expiry date + random characters)
11
+
This function retrieves test kit data from the database for the specified compartment (using the 'get_kit_id_from_db' function from 'oracle_specific_functions.py').
12
+
It then calculates a check digit for each retrieved kit ID and appends it to the kit ID.
13
+
Finally, it generates a FIT Device ID by appending an expiry date and a fixed suffix to the kit ID.
0 commit comments