Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
ProMod3
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
schwede
ProMod3
Commits
63ffa056
Commit
63ffa056
authored
10 years ago
by
Bienchen
Browse files
Options
Downloads
Plain Diff
Merge branch 'documentation' into develop
parents
9a30f193
82adad8d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/contributing.rst
+5
-4
5 additions, 4 deletions
doc/contributing.rst
with
5 additions
and
4 deletions
doc/contributing.rst
+
5
−
4
View file @
63ffa056
...
@@ -535,10 +535,11 @@ sporting a single monolithic :file:`test_sidechains.py`.
...
@@ -535,10 +535,11 @@ sporting a single monolithic :file:`test_sidechains.py`.
|python| code is evaluated using its own
|python| code is evaluated using its own
:py_docs:`unit testing framework <library/unittest.html>` with a little help
:py_docs:`unit testing framework <library/unittest.html>` with a little help
from |ost_s|_. The basic scheme is to import your module, subclass
from |ost_s|_ (|C++| uses the |boost| `Test Library <http://www.boost.org/doc/libs/1_47_0/libs/test/doc/html/index.html>`_).
:class:`unittest.TestCase` and make the whole file runnable as script using the
The basic scheme is to import your module, subclass :class:`unittest.TestCase`
most common |nameattr|_ attribute. A file :file:`tests/test_something.py` could
and make the whole file runnable as script using the most common |nameattr|_
look like this, carrying a single test case:
attribute. A file :file:`tests/test_something.py` could look like this,
carrying a single test case:
.. testcode:: promod3unittest
.. testcode:: promod3unittest
:hide:
:hide:
...
...
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