Skip to content

Commit

Permalink
Add test files to automatically test demos
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Aug 11, 2022
1 parent 86f7d6c commit 62b6827
Show file tree
Hide file tree
Showing 16 changed files with 50 additions and 0 deletions.
Empty file added examples/arc20/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/arc20/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()
Empty file added examples/c2c/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/c2c/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()
Empty file added examples/client/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/client/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()
Empty file added examples/opup/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/opup/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()
Empty file added examples/royalty/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/royalty/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()
Empty file added examples/simple/__init__.py
Empty file.
15 changes: 15 additions & 0 deletions examples/simple/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from .calculator import demo as calc_demo
from .counter import demo as count_demo
from .hello import demo as hello_demo


def test_calc():
calc_demo()


def test_count():
count_demo()


def test_hello():
hello_demo()
Empty file added examples/state/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/state/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()
Empty file added examples/structure/__init__.py
Empty file.
5 changes: 5 additions & 0 deletions examples/structure/test_demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .main import demo


def test_demo():
demo()

0 comments on commit 62b6827

Please sign in to comment.