Skip to content
Snippets Groups Projects
Commit 31fb2f77 authored by MJB's avatar MJB
Browse files

Merge branch 'integration' into mediaComponentConfig

parents c69b67fa 3cbd9020
No related branches found
No related tags found
No related merge requests found
Showing
with 33 additions and 4 deletions
File moved
#!/usr/bin/python3
\ No newline at end of file
......@@ -2,17 +2,19 @@
import pytest
import yaml
import pkg_resources
@pytest.fixture(scope="module", params=[{'config': {'rspec': '/vagrant/test/streaming/rspec.yml'}}])
def streaming_config(request):
@pytest.fixture(scope="module")
def streaming_config():
"""
Reads the service configuration deployed for the streaming simulation test.
:param request: access the parameters of the fixture
:return: the python object representing the read YAML file
"""
rspec = pkg_resources.resource_filename('clmctest.streaming', 'rspec.yml')
print("rspec file: {0}".format(rspec))
with open(request.param['config']['rspec'], 'r') as stream:
with open(rspec, 'r') as stream:
data_loaded = yaml.load(stream)
return data_loaded
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
setup.py 0 → 100644
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = "clmctest",
#version = read('.build-config/git-commit-version'),
version = "SNAPSHOT",
author = "Michael Boniface",
author_email = "mjb@it-innovation.soton.ac.uk",
description = "FLAME CLMC Testing Module",
license = "license",
keywords = "example documentation",
url = "http://packages.python.org/an_example_pypi_project",
packages=find_packages(exclude=["services"]),
include_package_data=True,
package_data={'': ['*.yml', '*.sh']},
long_description="long description",
classifiers=[
"Development Status :: Alpha",
"Topic :: FLAME Tests",
"License :: ",
],
)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment