Skip to content

reverting back to wxflow develop #17

reverting back to wxflow develop

reverting back to wxflow develop #17

GitHub Actions / Test Results failed Jun 28, 2024 in 0s

1 fail, 6 pass in 10s

7 tests  ±0   6 ✅  - 1   10s ⏱️ +5s
1 suites ±0   0 💤 ±0 
1 files   ±0   1 ❌ +1 

Results for commit 5f9c85e. ± Comparison against earlier commit 047a71b.

Annotations

Check warning on line 0 in test_setup

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_setup_xml (test_setup) failed

ci/scripts/tests/test-results.xml [took 0s]
Raw output
KeyError: 'ACCOUNT'
def test_setup_xml():
    
        script_content = '''#!/usr/bin/env bash
    #export ACCOUNT=fooman
    #export HOMEgfs=foobar
    ../../../workflow/setup_xml.py "${1}"
    '''
        with open('run_setup_xml.sh', 'w') as file:
            file.write(script_content)
        os.chmod('run_setup_xml.sh', 0o755)
    
        setup_xml_script = Executable(os.path.join(HOMEgfs, "ci", "scripts", "tests", "run_setup_xml.sh"))
        setup_xml_script.add_default_arg(f"{RUNDIR}/{pslot}")
        setup_xml_script()
        assert (setup_xml_script.returncode == 0)
    
        cfg = Configuration(f"{RUNDIR}/{pslot}")
        base = cfg.parse_config('config.base')
>       assert base.ACCOUNT == account

test_setup.py:46: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/opt/hostedtoolcache/Python/3.11.8/x64/lib/python3.11/site-packages/wxflow/attrdict.py:79: in __getattr__
    return self.__getitem__(item)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = {}, name = 'ACCOUNT'

    def __missing__(self, name):
        if object.__getattribute__(self, '__frozen'):
            raise KeyError(name)
>       raise KeyError(name)
E       KeyError: 'ACCOUNT'

/opt/hostedtoolcache/Python/3.11.8/x64/lib/python3.11/site-packages/wxflow/attrdict.py:84: KeyError