Skip to content

Commit 7fca00b

Browse files
committed
Remove old tests from test_package.py, change description and copyright (setup.py, meta.py), add of an import in the init file
1 parent 27d2ea7 commit 7fca00b

File tree

4 files changed

+4
-22
lines changed

4 files changed

+4
-22
lines changed

bladex/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
__all__ = ['profilebase', 'profiles', 'blade', 'shaft', 'propeller', 'deform', 'params', 'ndinterpolator']
55

6+
from .meta import *
67
from .profilebase import ProfileBase
78
from .profiles import CustomProfile, NacaProfile
89
from .blade import Blade

bladex/meta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
__project__ = 'BladeX'
1313
__title__ = "bladex"
1414
__author__ = "Marco Tezzele, Mahmoud Gadalla"
15-
__copyright__ = "Copyright 2019, BladeX contributors"
15+
__copyright__ = "Copyright 2019-2021, BladeX contributors"
1616
__license__ = "MIT"
1717
__version__ = "0.1.0"
1818

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Package meta-data.
1010
NAME = meta['__title__']
11-
DESCRIPTION = 'BladeX.'
11+
DESCRIPTION = 'Python Blade Morphing'
1212
URL = 'https://github.com/mathLab/BladeX'
1313
MAIL = meta['__mail__']
1414
AUTHOR = meta['__author__']

tests/test_package.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,4 @@ def test_import_blade_4(self):
3333

3434
def test_import_blade_5(self):
3535
import bladex as bx
36-
inter = bx.ndinterpolator.RBF('gaussian_spline', 1.2)
37-
38-
def test_modules_name(self):
39-
# it checks that __all__ includes all the .py files in bladex folder
40-
import bladex
41-
package = bladex
42-
43-
f_aux = []
44-
for (__, __, filenames) in walk('bladex'):
45-
f_aux.extend(filenames)
46-
47-
f = []
48-
for i in f_aux:
49-
file_name, file_ext = path.splitext(i)
50-
if file_name != '__init__' and file_ext == '.py':
51-
f.append(file_name)
52-
53-
print(f)
54-
print(package.__all__)
55-
assert sorted(package.__all__) == sorted(f)
36+
inter = bx.ndinterpolator.RBF('gaussian_spline', 1.2)

0 commit comments

Comments
 (0)