mirror of
https://github.com/lemeow125/DRF_Template.git
synced 2025-09-18 05:29:37 +08:00
Implement tests
This commit is contained in:
parent
7b1d9d2b4c
commit
0baf619ace
19 changed files with 432 additions and 48 deletions
9
.bruno/drf_template/bruno.json
Normal file
9
.bruno/drf_template/bruno.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"version": "1",
|
||||
"name": "drf_template",
|
||||
"type": "collection",
|
||||
"ignore": [
|
||||
"node_modules",
|
||||
".git"
|
||||
]
|
||||
}
|
4
.bruno/drf_template/collection.bru
Normal file
4
.bruno/drf_template/collection.bru
Normal file
|
@ -0,0 +1,4 @@
|
|||
meta {
|
||||
name: drf_template
|
||||
type: collection
|
||||
}
|
5
.bruno/drf_template/environments/drf_template.bru
Normal file
5
.bruno/drf_template/environments/drf_template.bru
Normal file
|
@ -0,0 +1,5 @@
|
|||
vars {
|
||||
BASE_URL: {{process.env.BACKEND_URL}}
|
||||
ADMIN_EMAIL: {{process.env.BACKEND_ADMIN_EMAIL}}
|
||||
USER_PASSWORD: {{process.env.BACKEND_PASSWORD}}
|
||||
}
|
11
.bruno/drf_template/get-swagger.bru
Normal file
11
.bruno/drf_template/get-swagger.bru
Normal file
|
@ -0,0 +1,11 @@
|
|||
meta {
|
||||
name: GET Swagger
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
get {
|
||||
url: {{BASE_URL}}/swagger/
|
||||
body: none
|
||||
auth: none
|
||||
}
|
18
.bruno/drf_template/login.bru
Normal file
18
.bruno/drf_template/login.bru
Normal file
|
@ -0,0 +1,18 @@
|
|||
meta {
|
||||
name: Login & Get Users
|
||||
type: http
|
||||
seq: 1
|
||||
}
|
||||
|
||||
post {
|
||||
url: {{BASE_URL}}/accounts/jwt/create/
|
||||
body: json
|
||||
auth: none
|
||||
}
|
||||
|
||||
body:json {
|
||||
{
|
||||
"username": "{{ADMIN_EMAIL}}",
|
||||
"password": "{{USER_PASSWORD}}"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue