This server has been upgraded to version 12.6.4. Enjoy!

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

test hook

parent c3103949
...@@ -346,9 +346,16 @@ ...@@ -346,9 +346,16 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"## hooks for unittests (or use a continuous-integration server)\n", "## hooks for unittests (or use a continuous-integration server)"
"\n", ]
"Go to: .git/hooks" },
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"pip install python-githooks"
] ]
}, },
{ {
...@@ -373,6 +380,18 @@ ...@@ -373,6 +380,18 @@
"display_name": "Python 3", "display_name": "Python 3",
"language": "python", "language": "python",
"name": "python3" "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, "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 @@ ...@@ -6,7 +6,8 @@
import unittest import unittest
import datetime import datetime
from .context import example from examplepydebuggingandtesting import example
class TestUrbanDrainageTS(unittest.TestCase): class TestUrbanDrainageTS(unittest.TestCase):
""" base test class. """ """ 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