Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
examplepydebuggingandtesting
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
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
Xierzhati Aniwa
examplepydebuggingandtesting
Commits
1cb2a31a
Commit
1cb2a31a
authored
May 06, 2019
by
andy.disch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test hook
parent
c3103949
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
15 deletions
+24
-15
examplepydebuggingandtesting/example.ipynb
examplepydebuggingandtesting/example.ipynb
+22
-3
tests/context.py
tests/context.py
+0
-11
tests/test_urban_drainage_ts.py
tests/test_urban_drainage_ts.py
+2
-1
No files found.
examplepydebuggingandtesting/example.ipynb
View file @
1cb2a31a
...
...
@@ -346,9 +346,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## hooks for unittests (or use a continuous-integration server)\n",
"\n",
"Go to: .git/hooks"
"## hooks for unittests (or use a continuous-integration server)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pip install python-githooks"
]
},
{
...
...
@@ -373,6 +380,18 @@
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
...
...
tests/context.py
deleted
100644 → 0
View file @
c3103949
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Example test context file."""
import
os
import
sys
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'..'
)))
from
examplepydebuggingandtesting
import
example
tests/test_urban_drainage_ts.py
View file @
1cb2a31a
...
...
@@ -6,7 +6,8 @@
import
unittest
import
datetime
from
.context
import
example
from
examplepydebuggingandtesting
import
example
class
TestUrbanDrainageTS
(
unittest
.
TestCase
):
""" base test class. """
...
...
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