Commit 1cb2a31a authored by andy.disch's avatar andy.disch

test hook

parent c3103949
......@@ -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,
......
#!/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
......@@ -6,7 +6,8 @@
import unittest
import datetime
from .context import example
from examplepydebuggingandtesting import example
class TestUrbanDrainageTS(unittest.TestCase):
""" base test class. """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment