Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .coverage
Binary file not shown.
1 change: 1 addition & 0 deletions files/test_file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
some_file_content
Binary file modified healthdb.db
Binary file not shown.
34 changes: 34 additions & 0 deletions test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,40 @@ def test_getdoclist(client):
doctor_list = doctor.getdoclist('q', 'do', 'none')
assert isinstance(doctor_list, list)


def test_getdoclist1(client):
# Assuming there are doctors in the database
doctor = Doctor()

result1 = doctor.getdoclist('John', 'Doe', 'Cardiology')
assert isinstance(result1, list)


result2 = doctor.getdoclist('Doc', 'tor1', '')
assert isinstance(result2, list)


result3 = doctor.getdoclist('Doc', '', 'Cardiology')
assert isinstance(result3, list)


result4 = doctor.getdoclist('', 'Doe', 'Cardiology')
assert isinstance(result4, list)


result5 = doctor.getdoclist('Doc', '', '')
assert isinstance(result5, list)

result6 = doctor.getdoclist('', 'Doe', '')
assert isinstance(result6, list)

result7 = doctor.getdoclist('', '', 'Cardiology')
assert isinstance(result7, list)

result8 = doctor.getdoclist('', '', '')
assert isinstance(result8, list)


def test_getallappointments(client):
doctor = Doctor()
doc_email = '[email protected]'
Expand Down