예제 #1
0
 def test_get_config_tmpdir__from_resources(self):
     config = {
         'resources': {
             'tmp': {'dir': 'TEST_TMP_DIR'}
         }
     }
     expected = 'TEST_TMP_DIR'
     result = _get_base_tmpdir(config, CWD)
     assert result == expected
예제 #2
0
 def test_get_config_tmpdir__from_config(self):
     TMPDIR = 'TEST_TMP_DIR'
     config = {
         'config': {
             'resources': {
                 'tmp': {'dir': TMPDIR}
             }
         }
     }
     expected = TMPDIR
     result = _get_base_tmpdir(config, CWD)
     assert result == expected
예제 #3
0
 def test_get_config_tmpdir__no_data(self):
     result = _get_base_tmpdir(None, CWD)
     assert result == '%s/bcbiotx' % CWD
예제 #4
0
 def test_get_config_tmpdir__no_data(self):
     result = _get_base_tmpdir(None, CWD)
     assert result == '%s/bcbiotx' % CWD
예제 #5
0
 def test_get_config_tmpdir__from_resources(self):
     config = {'resources': {'tmp': {'dir': 'TEST_TMP_DIR'}}}
     expected = 'TEST_TMP_DIR'
     result = _get_base_tmpdir(config, CWD)
     assert result == expected
예제 #6
0
 def test_get_config_tmpdir__from_config(self):
     TMPDIR = 'TEST_TMP_DIR'
     config = {'config': {'resources': {'tmp': {'dir': TMPDIR}}}}
     expected = TMPDIR
     result = _get_base_tmpdir(config, CWD)
     assert result == expected