Commit aa997450 authored by Tristan Van Berkom's avatar Tristan Van Berkom

tests: Removing tests/pipeline/load.py

The remaining test simply loads a project with one element
and asserts a value on it. This is already sufficiently tested
in tests/format/project.py.
parent a7fbd900
import os
import pytest
from buildstream._exceptions import ErrorDomain
from buildstream import _yaml
from tests.testutils.runcli import cli
DATA_DIR = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'load',
)
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'simple'))
def test_load_simple(cli, datafiles):
basedir = os.path.join(datafiles.dirname, datafiles.basename)
result = cli.get_element_config(basedir, 'simple.bst')
assert(result['configure-commands'][0] == 'pony')
# Basic project configuration that doesnt override anything
#
name: pony
kind: autotools
description: Some kinda autotools element
config:
configure-commands:
- pony
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment