Skip to content
Snippets Groups Projects
Commit 38b918fb authored by Ivar Härnqvist's avatar Ivar Härnqvist
Browse files

Merge branch 'develop' of gitlab.liu.se:PUM_TDDD96/B-ASIC into develop

parents 94a50a8e aacf7a83
No related branches found
No related tags found
3 merge requests!67WIP: B-ASIC version 1.0.0 hotfix,!65B-ASIC version 1.0.0,!15Add changes from sprint 1 and 2 to master
......@@ -88,6 +88,17 @@ python3
>>> help(asic)
```
## Running tests
### pytest
Run all tests against installed version off b_asic using a virtual enviroment
In `B-ASIC`:
```
python3 -m venv .venv
source .venv/bin/activate
pip install .
pytest
```
## License
B-ASIC is distributed under the MIT license.
See the included LICENSE file for more information.
\ No newline at end of file
See the included LICENSE file for more information.
......@@ -70,7 +70,8 @@ setuptools.setup(
install_requires = [
"pybind11>=2.3.0",
"numpy",
"install_qt_binding"
"install_qt_binding",
"pytest==5.3.4"
],
packages = ["b_asic"],
ext_modules = [CMakeExtension("b_asic")],
......
from b_asic import InputPort
import pytest
@pytest.fixture
def outp_port():
return InputPort(0)
def test_port(outp_port):
assert outp_port.signals() == []
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment