Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
frozen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CSE6
frozen
Commits
f7f8e4af
Commit
f7f8e4af
authored
2 years ago
by
Arno Wunderlich
Browse files
Options
Downloads
Patches
Plain Diff
add client test
parent
7c83f126
No related branches found
Branches containing commit
No related tags found
1 merge request
!66
Localization support
Pipeline
#16597
failed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/test_example.py
+2
-0
2 additions, 0 deletions
tests/test_example.py
with
2 additions
and
0 deletions
tests/test_example.py
+
2
−
0
View file @
f7f8e4af
...
@@ -8,3 +8,5 @@ def test_hello(client):
...
@@ -8,3 +8,5 @@ def test_hello(client):
response
=
client
.
get
(
'
/hello
'
,
headers
=
{
'
Accept-Language
'
:
'
en_US
'
})
response
=
client
.
get
(
'
/hello
'
,
headers
=
{
'
Accept-Language
'
:
'
en_US
'
})
assert
response
.
data
==
b
'
Hello, World!
'
assert
response
.
data
==
b
'
Hello, World!
'
def
client
(
app
):
return
app
.
test_client
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment