Comments (2)
I added some documentation for the authentication API to make writing tests easier.
from lynx.
I wrote a module for handling user authentication and requests (so the server would recognize the same user) for the client. I created tests for this module. They should be enough for testing the endpoints and the new module.
Although it is two tests only, they are comprehensive tests.
Note that I didn't use Django tests in this case. I didn't do so because we are using a third-party module. I recommend creating a wrapper and testing for that wrapper. But that may be overkill for this soon-to-due and small project.
![Screenshot 2023-08-02 at 8 02 07 PM](https://private-user-images.githubusercontent.com/30755087/257966696-a67bda54-a034-40bd-b1e6-c1fe41a249ec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg4MTQzMDAsIm5iZiI6MTcxODgxNDAwMCwicGF0aCI6Ii8zMDc1NTA4Ny8yNTc5NjY2OTYtYTY3YmRhNTQtYTAzNC00MGJkLWIxZTYtYzFmZTQxYTI0OWVjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE5VDE2MjAwMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJmNTUwN2E4Y2QyNGY5MTJiOWI2MjQ4MzgxMjgxNDhjMzVjYzA4ODEwODcyOTk0MWQ3YjgyY2I4MDMyYThmYzImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.3qQRrb417I6Hzea5K9uTuJlYXktSyq70o9VCvDrlXd0)
from lynx.
Related Issues (13)
- Refactor Code HOT 2
- Client: Authentication/User API HOT 3
- Fix Vulnerabilities
- Server: Games API HOT 3
- Set Up Static Site Server Hook HOT 1
- Client: Game-User API
- Set Up Back-End Server Hook HOT 2
- Set Up Client Development Environment HOT 2
- Example Issue HOT 1
- Example: Main Website Wrong Text
- Example: Improve Font
- Example: Add Site Information in Readme File HOT 1
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 lynx.