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)
- Management command `load_dummy_data` not seeding investigation related seed data HOT 2
- Add additional shortcuts to the Makefile HOT 4
- Remove package django-multiselect-field
- Remove `deprecated_symptoms`
- Convert `Facility.features` to ArrayField HOT 1
- Remove `multiselectfield` references from migrations and other places
- Celery not reconnecting with redis when the cluster restarts
- Add queue length info in the health check endpoint
- Create a new endpoint to show the current app version
- Change sentry reporting to error only by default
- Add a global timeout of 20 seconds to external requests to abdm
- Add a global 20 seconds timeout to middleware requests
- Set default permission class to IsAuthenticated HOT 1
- Research slow db timeouts reported on sentry
- Investigate values being logged from constraint exceptions
- Middleware to log request times HOT 1
- ICD11: Fallback to DB lookup for unresolved lookups to redis and improving exception handling
- Flush Redis before loading static data
- Optimize the N+1 query occurrence in the `/api/v1/facility/` endpoint to improve performance and reduce database load.
- Send notification to patient through ABDM when thier patient records are edited
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.