Skip to content

Commit

Permalink
doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonski committed Feb 29, 2024
1 parent 55530c9 commit db37561
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/senaite/patient/tests/doctests/AgeDateOfBirthField.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ We need to create some basic objects for the test:

>>> client = api.create(portal.clients, "Client", Name="General Hospital", ClientID="GH", MemberDiscountApplies=False)
>>> contact = api.create(client, "Contact", Firstname="Rita", Lastname="Mohale")
>>> sampletype = api.create(setup.sampletypes, "SampleType", title="Blood", Prefix="B")
>>> sampletype = api.create(bika_setup.bika_sampletypes, "SampleType", title="Blood", Prefix="B")
>>> labcontact = api.create(bika_setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager")
>>> department = api.create(setup.departments, "Department", title="Clinical Lab", Manager=labcontact)
>>> category = api.create(bika_setup.bika_analysiscategories, "AnalysisCategory", title="Blood", Department=department)
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/patient/tests/doctests/DynamicResultRanges.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Create some baseline objects for the test:

>>> client = api.create(portal.clients, "Client", Name="Happy Pills", ClientID="HP")
>>> contact = api.create(client, "Contact", Firstname="Rita", Lastname="Mohale")
>>> sampletype = api.create(setup.sampletypes, "SampleType", title="EDTA", Prefix="EDTA")
>>> sampletype = api.create(bika_setup.bika_sampletypes, "SampleType", title="EDTA", Prefix="EDTA")
>>> labcontact = api.create(bika_setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager")
>>> department = api.create(setup.departments, "Department", title="Biochemistry", Manager=labcontact)
>>> category = api.create(bika_setup.bika_analysiscategories, "AnalysisCategory", title="Biochemistry", Department=department)
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/patient/tests/doctests/PatientSample.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ We need to create some basic objects for the test:
>>> setRoles(portal, TEST_USER_ID, ['LabManager',])
>>> client = api.create(portal.clients, "Client", Name="General Hospital", ClientID="GH", MemberDiscountApplies=False)
>>> contact = api.create(client, "Contact", Firstname="Rita", Lastname="Mohale")
>>> sampletype = api.create(setup.sampletypes, "SampleType", title="Blood", Prefix="B")
>>> sampletype = api.create(bika_setup.bika_sampletypes, "SampleType", title="Blood", Prefix="B")
>>> labcontact = api.create(bika_setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager")
>>> department = api.create(setup.departments, "Department", title="Clinical Lab", Manager=labcontact)
>>> category = api.create(bika_setup.bika_analysiscategories, "AnalysisCategory", title="Blood", Department=department)
Expand Down
2 changes: 1 addition & 1 deletion src/senaite/patient/tests/doctests/PatientWorkflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ We need to create some basic objects for the test:
>>> setRoles(portal, TEST_USER_ID, ['LabManager',])
>>> client = api.create(portal.clients, "Client", Name="General Hospital", ClientID="GH", MemberDiscountApplies=False)
>>> contact = api.create(client, "Contact", Firstname="Rita", Lastname="Mohale")
>>> sampletype = api.create(setup.sampletypes, "SampleType", title="Blood", Prefix="B")
>>> sampletype = api.create(bika_setup.bika_sampletypes, "SampleType", title="Blood", Prefix="B")
>>> labcontact = api.create(bika_setup.bika_labcontacts, "LabContact", Firstname="Lab", Lastname="Manager")
>>> department = api.create(setup.departments, "Department", title="Clinical Lab", Manager=labcontact)
>>> category = api.create(bika_setup.bika_analysiscategories, "AnalysisCategory", title="Blood", Department=department)
Expand Down

0 comments on commit db37561

Please sign in to comment.