Skip to content

Commit

Permalink
Test examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan committed May 9, 2024
1 parent 13cb67d commit e974700
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import pytest

from pathlib import Path

def test_sine_wave():
exec(Path("../examples/sine_wave.py").read_text())
assert Path("sine_wave.gif").is_file()

def test_rotating_circular_sine_wave():
exec(Path("../examples/rotating_circular_sine_wave.py").read_text())
assert Path("rotating_circular_sine_wave.mp4").is_file()

0 comments on commit e974700

Please sign in to comment.