mirror of
https://github.com/aphrody-labs/pyo3.git
synced 2026-10-14 20:49:12 +00:00
23 lines
270 B
Python
23 lines
270 B
Python
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)
|