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
3a536b70
Commit
3a536b70
authored
2 years ago
by
Arno Wunderlich
Browse files
Options
Downloads
Patches
Plain Diff
added imports to fix test
parent
f7f8e4af
Branches
main
No related tags found
1 merge request
!66
Localization support
Pipeline
#16601
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
+3
-4
3 additions, 4 deletions
tests/test_example.py
with
3 additions
and
4 deletions
tests/test_example.py
+
3
−
4
View file @
3a536b70
from
tjts5901
import
create_app
from
tjts5901.conftests
import
client
,
app
def
test_config
():
assert
not
create_app
().
testing
...
...
@@ -6,7 +8,4 @@ def test_config():
def
test_hello
(
client
):
response
=
client
.
get
(
'
/hello
'
,
headers
=
{
'
Accept-Language
'
:
'
en_US
'
})
assert
response
.
data
==
b
'
Hello, World!
'
def
client
(
app
):
return
app
.
test_client
()
\ No newline at end of file
assert
response
.
data
==
b
'
Hello, World!
'
\ 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