Skip to content

Commit

Permalink
Merge pull request #349 from tangkong/bug_args_simplenamespace
Browse files Browse the repository at this point in the history
FIX: make tst_pim_2 loadable, types.SimpleNamespace does not take positional args
  • Loading branch information
tangkong authored Oct 15, 2024
2 parents 0f61759 + 08b7f1a commit 886aa25
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
349 bug_args_simplenamespace
############################

API Breaks
----------
- N/A

Features
--------
- N/A

Bugfixes
--------
- Fixes issue in test suite, making tst_base_pim2 a loadable SimpleNamespacce

Maintenance
-----------
- N/A

Contributors
------------
- tangkong
3 changes: 0 additions & 3 deletions happi/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,6 @@ def db(tmp_path):
"tst_base_pim2": {
"_id": "tst_base_pim2",
"active": true,
"args": [
"{{prefix}}"
],
"beamline": "TST",
"creation": "Wed Jan 30 09:46:00 2019",
"device_class": "types.SimpleNamespace",
Expand Down
4 changes: 1 addition & 3 deletions happi/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,7 @@ def test_search_json(runner: CliRunner, happi_cfg: str):
{
"name": "tst_base_pim2",
"device_class": "types.SimpleNamespace",
"args": [
"{{prefix}}"
],
"args": [],
"kwargs": {
"name": "{{name}}"
},
Expand Down

0 comments on commit 886aa25

Please sign in to comment.