-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Unit Tests #488
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Hello, i would like to try this out. Any pointers on where i should get started ? |
Hi, we have a lot of breaking unit tests, you can start with those, and then later on we can write more unit tests and check more edge cases. |
Sure. I am bit confused about where these users and facilities are created. Or are they created using some sample data. Is there any get started guide i could look at ? Apologies for the noob question. This is what i see, after i have run the dev (i changed the config a bit for it find the static files) server. |
You can send an email at vichuhari100@gmail.com and we can schedule a call to explain the code a bit. |
Sure. Thanks :) |
So, i started going through some tests, and for one of the test for ex: ...
def get_sample_data(self, **kwargs):
patient = kwargs.get("patient", self.patient)
consultation = kwargs.get("consultation", self.consultation)
return {
"patient": str(patient.external_id),
"consultation": str(consultation.external_id),
"sample_type": "BA/ETA",
"testing_facility": str(patient.facility.external_id),
}
... Should that been How should one handle this ? Any thoughts ? |
Closing in favour of #794 |
All Unit Tests are broken, we need better unit testing with more edge cases on core functionality including permission scoping tests.
The text was updated successfully, but these errors were encountered: