pyo3/examples/plugin/plugin_api/tests/test_Gadget.py

23 lines
270 B
Python
Raw Normal View History

import pytest
@pytest.fixture
def gadget():
import plugin_api as pa
g = pa.Gadget()
return g
def test_creation(gadget):
pass
def test_property(gadget):
gadget.prop = 42
assert gadget.prop == 42
def test_push(gadget):
gadget.push(42)