abbyevewilliams / nerc-pk-project

MIT License
1 stars 0 forks source link

Set dose options #11

Open creed130 opened 5 hours ago

creed130 commented 5 hours ago

Allow for two dose options, instant and gradual. This should be in protocol class - an attribute maybe called dose_type or something

creed130 commented 4 hours ago

https://blog.finxter.com/5-best-ways-to-restrict-argument-values-using-choice-options-in-python/#:~:text=5%20Best%20Ways%20to%20Restrict%20Argument%20Values%20Using,4%20Method%204%3A%20ArgumentParser%20for%20Command-Line%20Applications%20

creed130 commented 3 hours ago
def test_invalid_type_fails():
    with pytest.raises(Exception) as e_info:
        protocol_test.set_dose('invalid_type')