Пример #1
0
def test_get_app_name_returns_value_from_manifest(mock_manifest):
    assert qpylib.get_app_name() == 'Live Manifest'
Пример #2
0
def test_get_app_name_raises_error_when_field_missing_from_manifest(
        mock_manifest):
    with pytest.raises(KeyError, match='name is a required manifest field'):
        qpylib.get_app_name()
Пример #3
0
def test_get_app_name_returns_value_from_manifest(mock_root_path,
                                                  mock_get_manifest_location):
    assert qpylib.get_app_name() == 'Live Manifest'