Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
synergy
o3skim
Commits
3f605830
Commit
3f605830
authored
Aug 12, 2020
by
BorjaEst
Browse files
Added test template
parent
66ed2449
Changes
3
Hide whitespace changes
Inline
Side-by-side
cicd/module_template.py
View file @
3f605830
...
...
@@ -6,3 +6,4 @@ def hello_world(*arg, **kvarg):
if
arg
or
kvarg
:
print
(
f
" - Arguments as inputs:
{
arg
}
"
)
print
(
f
" - Key-Value arguments:
{
kvarg
}
"
)
return
True
tests/__init__.py
0 → 100644
View file @
3f605830
"""Unit test package for torch_cd_example."""
tests/test_template.py
0 → 100644
View file @
3f605830
"""Unittest module template."""
import
unittest
from
cicd
import
module_template
class
TestCICD_module_template
(
unittest
.
TestCase
):
"""Tests for `module_template` package."""
def
setUp
(
self
):
"""Set up test fixtures, if any."""
def
tearDown
(
self
):
"""Tear down test fixtures, if any."""
def
test_000_something
(
self
):
"""Test something."""
self
.
assertTrue
(
module_template
.
hello_world
())
self
.
assertFalse
(
False
)
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