Comments (13)
Hi, I would like to add unit tests for the back-end code. Are there any guidelines or should a particular library be used?
from care.
No, you are free to use any library,
PS, just ping me on slack if i don't reply here, as i may miss the GitHub notifications
from care.
@nabhanabdulla
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
https://www.django-rest-framework.org/api-guide/testing/
from care.
Ok, got it @vigneshhari
Thanks @biswaz, looking into it
from care.
@vigneshhari It will be great if we have the slack channel mentioned in the README file.
Easy for new developers to connect.
from care.
@ja8zyjits create an issue, take it up and submit a PR :)
( use the slack badge if possible )
from care.
Are you doing this @nabhanabdulla ?
from care.
from care.
@ja8zyjits I agree. Going ahead and adding tests for facility.
from care.
@afzalIbnSH , No, I am trying to make sense of the project code. I am new to Django and is learning currently.
As @ja8zyjits suggested I think it will be better to take up for different modules. Also, it will be great if you either of you could help me get started.
from care.
Create another issue for doing a specific View Testing and Comment that you are doing it
from care.
Shall I start adding tests for the users application?
from care.
You can test all the API Views
from care.
Related Issues (20)
- Fix N+1 queries in `/api/v1/users/{username}/get_facilities/` HOT 3
- Fix N+1 queries in `/api/v1/getallfacilities/`
- Fix N+1 queries in `/api/v1/resource/`
- Fix N+1 queries in `/api/v1/patient/` HOT 1
- Fix N+1 queries in `/api/v1/bed/` HOT 1
- Fix N+1 queries in `/api/v1/consultationbed/` HOT 7
- Allow only state admin users to delete other users
- TypeError: unhashable type: 'list' at `/api/v1/patient/{patient_external_id}/test_sample/{external_id}/icmr_sample/`
- PatientConsultation.DoesNotExist: PatientConsultation matching query does not exist. `/api/v1/consultation/{consultation_external_id}/daily_rounds/analyse/` HOT 3
- Upgrade django to 4.2
- Remove PatientSearch model
- Prescriptions Migration Cleanup: Correct migrated frequency choice from lowercase to UPPERCASE choices
- Convert partial indexes to unique constraints
- Fix existing Unit Tests & Ensure they are running in Github Actions HOT 5
- Updating Tests in the Care Project
- Adds test for `authentication` and `token verification/refresh` endpoints
- Adds test for `otp` and `password` endpoints
- Adds test for various endpoints in the `user` module
- Adds test for various endpoints in the `ambulance` module
- Adds test for various endpoints in the `asset` module
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from care.