예제 #1
0
def test_set_environment_variables(mocked):
    common.rootDir = './'
    with mock.patch.dict('os.environ'):
        os.environ.pop('ANDROID_HOME', None)
        assert 'ANDROID_HOME' not in os.environ
        common.set_environment_variables()
        assert 'ANDROID_HOME' in os.environ
예제 #2
0
파일: test_common.py 프로젝트: gcf0082/qark
def test_set_environment_variables(mocked):
    common.rootDir = './'
    with mock.patch.dict('os.environ'):
        os.environ.pop('ANDROID_HOME', None)
        assert 'ANDROID_HOME' not in os.environ
        common.set_environment_variables()
        assert 'ANDROID_HOME' in os.environ
예제 #3
0
def test_set_environment_variables(mocked):
    common.rootDir = './'
    assert 'ANDROID_HOME' not in os.environ
    common.set_environment_variables()
    assert 'ANDROID_HOME' in os.environ