Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Drone-side-project
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
skysky
Drone-side-project
Commits
98266690
Commit
98266690
authored
Jul 31, 2023
by
skysky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new test_client
parent
19a91921
Pipeline
#4521
passed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
2 deletions
+9
-2
.drone.yml
.drone.yml
+3
-2
app_web/models/__pycache__/Todo.cpython-310.pyc
app_web/models/__pycache__/Todo.cpython-310.pyc
+0
-0
app_web/tests/__pycache__/test_server.cpython-310-pytest-7.4.0.pyc
...ests/__pycache__/test_server.cpython-310-pytest-7.4.0.pyc
+0
-0
app_web/tests/test_server.py
app_web/tests/test_server.py
+6
-0
No files found.
.drone.yml
View file @
98266690
...
...
@@ -3,9 +3,10 @@ kind: pipeline
type
:
docker
name
:
default
steps
:
-
name
:
test
-
name
:
build
image
:
python
commands
:
-
echo "Starting
test
now..."
-
echo "Starting
build
now..."
-
pip install -r requirements.txt
-
echo "Starting test now..."
-
pytest -vv
app_web/models/__pycache__/Todo.cpython-310.pyc
0 → 100644
View file @
98266690
File added
app_web/tests/__pycache__/test_server.cpython-310-pytest-7.4.0.pyc
0 → 100644
View file @
98266690
File added
app_web/tests/test_server.py
0 → 100644
View file @
98266690
from
app_web
import
app
def
test_client
():
response
=
app
.
test_client
()
.
get
(
"/"
)
assert
response
.
status_code
==
200
,
"Connect error"
assert
response
.
data
.
decode
(
"utf-8"
)
==
"Hello, World!"
,
"Error return sentence!"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment