Skip to content

Commit

Permalink
added code to test kcat retrieving
Browse files Browse the repository at this point in the history
  • Loading branch information
SamiralVdB committed Dec 20, 2023
1 parent 409bb36 commit ee946e3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Binary file modified src/PAModelpy/__pycache__/EnzymeSectors.cpython-310.pyc
Binary file not shown.
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/unit_tests/test_pamodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,19 @@ def test_if_pamodel_copy_function_works():
assert_bounds(toy_pam, toy_pam_copy)
assert_total_protein_content(toy_pam, toy_pam_copy)

def test_if_pamodel_enzyme_get_kcat_values_correctly():
# arrange
toy_pam = build_toy_pam(sensitivity=False)
enzyme_to_return = 'E3'
reaction_to_return = 'R3'
kcat_to_return = 1/(3600*1e-6) #unit correction to be consistent with the way it is saved (see toymodel setup function)

# act
kcat_returned = toy_pam.enzymes.get_by_id(enzyme_to_return).get_kcat_values([reaction_to_return])

# assert
assert kcat_to_return == kcat_returned['f']


#######################################################################################################
#HELPER METHODS
Expand Down

0 comments on commit ee946e3

Please sign in to comment.