Skip to content

Instantly share code, notes, and snippets.

@stasSajin
Created November 22, 2019 02:09
Show Gist options
  • Save stasSajin/d9c47cfbc1e86b7343da60b2e06d3d60 to your computer and use it in GitHub Desktop.
Save stasSajin/d9c47cfbc1e86b7343da60b2e06d3d60 to your computer and use it in GitHub Desktop.
from hypothesis import strategies as st
from hypothesis import given
import pytest
@given(data=st.from_type(UserAssessment))
def test_apply_treatment(data):
result = apply_treatment(data)
# specify asserts in here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment