Skip to content

Commit

Permalink
Add sample unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
langdal committed Feb 10, 2021
1 parent a646a13 commit e04fbaf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r requirements.txt
pytest==6.2.2
Empty file added tests/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions tests/test_optimizer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from optimizerapi import optimizer

def test_first_sample():
Xi = [0.01]
yi = 1
result = optimizer.run(params=None, Xi=Xi, yi=yi)
print(result)
assert "Run with" in result

0 comments on commit e04fbaf

Please sign in to comment.