Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit e607a4d

Browse files
committed
Fix package structure
1 parent 3f5fd9f commit e607a4d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

fiaas_ais/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
from .ais import app
12
from .ais import main
3+
4+
__all__ = ["app", "main"]

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
test=pytest
33

44
[tool:pytest]
5-
addopts = --junitxml=build/reports/tests/junit.xml --cov=ais --cov-report html --cov-report term --cov-report xml
5+
addopts = --junitxml=build/reports/tests/junit.xml --cov=fiaas_ais --cov-report html --cov-report term --cov-report xml
66

77
[coverage:html]
88
directory=build/reports/coverage

tests/test_s3.py tests/fiaas_ais/test_s3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22
# -*- coding: utf-8
33

4-
import ais
4+
from fiaas_ais import app
55
from moto import mock_s3
66
from unittest import TestCase
77
from datetime import datetime
@@ -18,8 +18,8 @@ def setUp(self):
1818
self.conn = boto3.resource('s3')
1919
self.conn.create_bucket(Bucket=self.mybucket)
2020

21-
self.app = ais.app
22-
self.client = ais.app.test_client()
21+
self.app = app
22+
self.client = app.test_client()
2323

2424
def test_persist_tag_to_s3(self):
2525
keys = ['updated', 'image', 'commit', 'build']

0 commit comments

Comments
 (0)