Skip to content

Commit

Permalink
test: Setup basic testing
Browse files Browse the repository at this point in the history
This commit sets up testing including one first basic test.

Signed-off-by: Sietze van Buuren <[email protected]>
  • Loading branch information
swvanbuuren committed Nov 10, 2024
1 parent f5d2d4e commit fe61dad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ dependencies = [
"pyopengl",
]

[dependency-groups]
dev = [
"pylint",
"pytest",
]

[tool.setuptools.packages.find]
include = ["mlpyqtgraph", "mlpyqtgraph.*"]

Expand Down
Empty file added tests/__init__.py
Empty file.
15 changes: 15 additions & 0 deletions tests/basic_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
""" Basic tests for mlpyqtgraph """

import mlpyqtgraph as mpg


def test_open_close():
""" Test opening and closing a figure """

@mpg.plotter()
def main():
fig = mpg.figure(title='Test')
mpg.plot([1, 2, 3], [2, 3, 4])
fig.close()

main()

0 comments on commit fe61dad

Please sign in to comment.