Add test and config files to test Jenkins
This commit is contained in:
parent
c30f67b03b
commit
a604b63d84
38
barbican/tests/config_test.py
Normal file
38
barbican/tests/config_test.py
Normal file
@ -0,0 +1,38 @@
|
||||
#import os
|
||||
import unittest
|
||||
|
||||
#from oslo.config import cfg
|
||||
#from meniscus.config import init_config, get_config
|
||||
|
||||
|
||||
# Configuration test configuration options
|
||||
#test_group = cfg.OptGroup(name='test', title='Configuration Test')
|
||||
|
||||
#CFG_TEST_OPTIONS = [
|
||||
# cfg.BoolOpt('should_pass',
|
||||
# default=False,
|
||||
# help="""Example option to make sure configuration
|
||||
# loading passes test.
|
||||
# """
|
||||
# )
|
||||
#]
|
||||
|
||||
|
||||
def suite():
|
||||
suite = unittest.TestSuite()
|
||||
suite.addTest(WhenConfiguring())
|
||||
|
||||
return suite
|
||||
|
||||
|
||||
class WhenConfiguring(unittest.TestCase):
|
||||
|
||||
def test_loading(self):
|
||||
self.assertTrue(True)
|
||||
# init_config(['--config-file', '../etc/meniscus/meniscus.conf'])
|
||||
|
||||
# conf = get_config()
|
||||
# conf.register_group(test_group)
|
||||
# conf.register_opts(CFG_TEST_OPTIONS, group=test_group)
|
||||
|
||||
# self.assertTrue(conf.test.should_pass)
|
5
setup.cfg
Normal file
5
setup.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
[nosetests]
|
||||
where=barbican
|
||||
nocapture=1
|
||||
cover-package=barbican
|
||||
cover-erase=1
|
26
setup.py
Normal file
26
setup.py
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
try:
|
||||
from setuptools import setup, find_packages
|
||||
except ImportError:
|
||||
from ez_setup import use_setuptools
|
||||
use_setuptools()
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name = 'barbican',
|
||||
version = '0.1',
|
||||
description = '',
|
||||
author = 'Project Barbican',
|
||||
author_email = '',
|
||||
install_requires = [
|
||||
"falcon",
|
||||
"mock",
|
||||
"wsgiref",
|
||||
"uWSGI",
|
||||
"pymongo",
|
||||
],
|
||||
test_suite = 'barbican.tests',
|
||||
zip_safe = False,
|
||||
include_package_data = True,
|
||||
packages = find_packages(exclude=['ez_setup'])
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user