Skip to content

Commit

Permalink
test skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
johanos1 committed Nov 27, 2023

Verified

This commit was signed with the committer’s verified signature. The key has expired.
kylekurz Kyle Kurz
1 parent 3fd6535 commit 0e2f96c
Showing 5 changed files with 26 additions and 0 deletions.
10 changes: 10 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: leakpro
channels:
- conda-forge
dependencies:
- dotmap>=1.3.30 # core non-optional dependency
- loguru>=0.6.0 # core non-optional dependency
- matplotlib>=3.6.0 # core non-optional dependency
- numpy==1.23.5 # core non-optional depedency
- pytest # for tests
- python>=3.9 # core non-optional dependency
Empty file added leakpro/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions leakpro/leakpro.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class LEAKPRO:
def add(self, a, b):
return a + b
8 changes: 8 additions & 0 deletions leakpro/tests/simple_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from leakpro.leakpro import (
LEAKPRO,
) # look in leakpro package for a module named leakpro.py and import LEAKPRO class


def test_add():
a = LEAKPRO()
assert a.add(2, 3) == 5
5 changes: 5 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[pytest]
minversion = 7.0
testpaths =
leakpro/tests
pythonpath = .

0 comments on commit 0e2f96c

Please sign in to comment.