Exemplo n.º 1
0
def test_get_app_name_returns_value_from_manifest(mock_manifest):
    assert qpylib.get_app_name() == 'Live Manifest'
Exemplo n.º 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()
Exemplo n.º 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'