Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
27020564
Commit
27020564
authored
1 month ago
by
Simon Bjurek
Browse files
Options
Downloads
Patches
Plain Diff
Ignored unneccecary warnings in tests and updated LICENCE file
parent
047b6e91
No related branches found
Branches containing commit
No related tags found
1 merge request
!467
Ignored unneccecary warnings in tests and updated LICENCE file
Pipeline
#155823
passed
1 month ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
test/test_core_operations.py
+5
-4
5 additions, 4 deletions
test/test_core_operations.py
test/test_simulation_gui.py
+2
-0
2 additions, 0 deletions
test/test_simulation_gui.py
with
8 additions
and
5 deletions
LICENSE
+
1
−
1
View file @
27020564
MIT License
Copyright (c) 2020-202
2
, Oscar Gustafsson et al
Copyright (c) 2020-202
5
, Oscar Gustafsson et al
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
test/test_core_operations.py
+
5
−
4
View file @
27020564
...
...
@@ -413,9 +413,10 @@ class TestSink:
bfly
=
Butterfly
()
sfg
=
bfly
.
to_sfg
()
s
=
Sink
()
sfg1
=
sfg
.
replace_operation
(
s
,
"
out0
"
)
with
pytest
.
warns
(
UserWarning
,
match
=
"
Output port out0 has been removed
"
):
sfg1
=
sfg
.
replace_operation
(
s
,
"
out0
"
)
assert
sfg1
.
output_count
==
1
assert
sfg1
.
input_count
==
2
assert
sfg1
.
output_count
==
1
assert
sfg1
.
input_count
==
2
assert
sfg
.
evaluate_output
(
1
,
[
0
,
1
])
==
sfg1
.
evaluate_output
(
0
,
[
0
,
1
])
assert
sfg
.
evaluate_output
(
1
,
[
0
,
1
])
==
sfg1
.
evaluate_output
(
0
,
[
0
,
1
])
This diff is collapsed.
Click to expand it.
test/test_simulation_gui.py
+
2
−
0
View file @
27020564
...
...
@@ -7,6 +7,7 @@ except ImportError:
pytestmark
=
pytest
.
mark
.
skip
(
"
Qt not setup
"
)
@pytest.mark.filterwarnings
(
"
ignore:No artists with labels found to put in legend
"
)
def
test_start
(
qtbot
):
widget
=
PlotWindow
({})
qtbot
.
addWidget
(
widget
)
...
...
@@ -28,6 +29,7 @@ def test_start_with_data(qtbot):
assert
len
(
widget
.
_plot_axes
.
lines
)
==
1
@pytest.mark.filterwarnings
(
"
ignore:No artists with labels found to put in legend
"
)
def
test_click_buttons
(
qtbot
):
sim_res
=
{
'
0
'
:
[
0.5
,
0.5
,
0
,
0
],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment