-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
I had the tests so that I could run them interactively and test things.
Now I can no longer do that. Can you please replace the way I had it so that I can run them interactively?
Before:
mport pytest
import yacman
import os
# for interactive testing, run from within code/yacman
def test_yaml_load():
conf = yacman.load_yaml("conf.yaml")
yacmap = yacman.YacAttMap("conf.yaml")
yacmap2 = yacman.YacAttMap(conf)
Can run this no problem
After:
import pytest
In [4]: import pytest
In [5]: import yacman
In [6]: import os
In [7]: yacmap = yacman.YacAttMap(filepath=cfg_file, writable=True)
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-7-f12aa010db02> in <module>
----> 1 yacmap = yacman.YacAttMap(filepath=cfg_file, writable=True)
NameError: name 'cfg_file' is not defined
Can no longer easily get a testing environment where I can just load up a yacman for example interactive exploring.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels