Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Gabriel Monnerat
slapos.toolbox
Commits
5e334c04
Commit
5e334c04
authored
Aug 04, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include basic unit test run
Now people can easily add tests
parent
ac7769d9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
setup.py
setup.py
+1
-0
slapos/test/__init__.py
slapos/test/__init__.py
+0
-0
slapos/test/test_systool.py
slapos/test/test_systool.py
+12
-0
No files found.
setup.py
View file @
5e334c04
...
...
@@ -88,4 +88,5 @@ setup(name=name,
'networkbench = slapos.networkbench:main'
]
},
test_suite
=
'slapos.test'
,
)
slapos/test/__init__.py
0 → 100644
View file @
5e334c04
slapos/test/test_systool.py
0 → 100644
View file @
5e334c04
import
unittest
from
slapos.systool
import
sublist
class
TestSystool
(
unittest
.
TestCase
):
def
test_sublist
(
self
):
assert
sublist
(
"ab"
,
"b"
)
assert
sublist
(
"ac"
,
"b"
)
==
False
if
__name__
==
'__main__'
:
unittest
.
main
()
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