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
00060623
Commit
00060623
authored
2 years ago
by
Arno Wunderlich
Browse files
Options
Downloads
Patches
Plain Diff
code refactoring for complance with recommendation
parent
4610c2ec
No related branches found
No related tags found
1 merge request
!15
code refactoring for complance with recommendation
Pipeline
#14027
passed
2 years ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/tjts5901/db.py
+0
-1
0 additions, 1 deletion
src/tjts5901/db.py
src/tjts5901/views.py
+0
-1
0 additions, 1 deletion
src/tjts5901/views.py
tests/test_db.py
+3
-0
3 additions, 0 deletions
tests/test_db.py
with
3 additions
and
2 deletions
src/tjts5901/db.py
+
0
−
1
View file @
00060623
...
...
@@ -33,4 +33,3 @@ def init_db(app):
extra
=
{
"
MONGODB_SETTINGS
"
:
app
.
config
.
get
(
"
MONGODB_SETTINGS
"
)}
if
app
.
debug
else
{})
db
.
init_app
(
app
)
This diff is collapsed.
Click to expand it.
src/tjts5901/views.py
+
0
−
1
View file @
00060623
...
...
@@ -99,4 +99,3 @@ def add_item():
def
adding_successful
():
return
"
Item added successfully
"
This diff is collapsed.
Click to expand it.
tests/test_db.py
+
3
−
0
View file @
00060623
from
tjts5901.views
import
test_item_adding
def
test_db
():
"""
Testing the db connection via previously defined test method
"""
#assert init_db({'TESTING': True}).testing
assert
test_item_adding
()
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