Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
sektorsim
sektorsim-package
Commits
e2adb808
Commit
e2adb808
authored
May 16, 2025
by
Eric Duminil
Browse files
Basic tests
parent
6c2bca04
Changes
5
Hide whitespace changes
Inline
Side-by-side
src/sektorsim/__init__.py
View file @
e2adb808
from
.a
import
a
as
a
from
.b
import
b
as
b
__version__
=
"0.0.1"
src/sektorsim/a.py
View file @
e2adb808
def
a
(
x
:
float
):
def
a
(
x
:
float
)
->
float
:
return
x
+
1
src/sektorsim/b.py
0 → 100644
View file @
e2adb808
def
b
(
x
:
float
)
->
float
:
return
x
+
2
src/sektorsim/tests/__init__.py
0 → 100644
View file @
e2adb808
src/sektorsim/tests/test_sektorsim.py
0 → 100644
View file @
e2adb808
import
unittest
import
sektorsim
class
TestClass
(
unittest
.
TestCase
):
def
test_method
(
self
):
self
.
assertEqual
(
'foo'
.
upper
(),
'FOO'
)
self
.
assertEqual
(
sektorsim
.
a
(
3
),
4
)
self
.
assertEqual
(
sektorsim
.
b
(
3
),
5
)
if
__name__
==
'__main__'
:
unittest
.
main
()
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment