Unverified Commit c10edf2e authored by Avraam Tsantekidis's avatar Avraam Tsantekidis
Browse files

structure changes

parent 80c9df2d
......@@ -60,3 +60,4 @@ docs/_build/
target/
ansible/hosts
MANIFEST
# file GENERATED by distutils, do NOT edit
setup.py
__author__ = 'mike'
......@@ -5,7 +5,6 @@ import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__)
from kamaki.clients import astakos, cyclades
from kamaki.clients import ClientError
from kamaki.clients.utils import https
......@@ -38,7 +37,6 @@ class Provisioner:
# Get the authentication url and token
auth_url, auth_token = cloud_section['url'], cloud_section['token']
logger.info("Initiating Astakos Client")
self.astakos = astakos.AstakosClient(auth_url, auth_token)
......
kamaki
\ No newline at end of file
pytest
\ No newline at end of file
from distutils.core import setup
setup(
name='okeanos-LoD',
version='',
packages=[],
url='',
name='Fokia',
version='0.0.1',
packages=['fokia'],
url='https://github.com/grnet/okeanos-LoD',
license='',
author='',
author_email='',
description=''
description='~okeanos Lambda on Demand project',
)
import mock
from fokia.provisioner import Provisioner
import sys as s
print "Package six in packages == ", 'six' in s.modules.keys()
def test_find_flavor(monkeypatch):
with mock.patch('kamaki.clients.astakos'):
provisioner = Provisioner("lambda")
assert "C1R1024D40drbd" == provisioner.find_flavor()['name']
[tox]
envlist = py27,py34
envlist = py27
[testenv]
deps= -rrequirements.txt
commands=py.test # or 'nosetests' or ...
deps=
pytest
mock
-rrequirements.txt
commands=
pip install six
py.test
\ No newline at end of file
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