Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adalfarus committed Jun 15, 2024
1 parent 526e286 commit 9ebb11b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/aplustools/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
advanced_imagetools = _LazyModuleLoader('aplustools.data.advanced_imagetools')
compressor = _LazyModuleLoader('aplustools.data.compressor')
unien = _LazyModuleLoader('aplustools.data.unien')
faker_pro = _LazyModuleLoader('aplustools.data.faker_pro')

# Define __all__ to limit what gets imported with 'from <package> import *'
__all__ = ['database', 'updaters', 'imagetools', 'advanced_imagetools', 'compressor', 'unien']
__all__ = ['database', 'updaters', 'imagetools', 'advanced_imagetools', 'compressor', 'unien', 'faker_pro']

# Dynamically add exports from _direct_functions
from aplustools.data._direct_functions import *
Expand Down
5 changes: 5 additions & 0 deletions src/aplustools/data/faker_pro.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Extra functionalities derived from the faker module
# This is also a wrapper for the default faker.Faker
# class for ease of use.


def local_test():
"""Test the module"""
return True
2 changes: 1 addition & 1 deletion src/aplustools/io/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ def local_test():
print(f"Pc has been turned on since {int(system.get_uptime(),)} minutes")
# print("Network test", System.system().measure_network_speed())

@strict
@strict()
class MyCls:
_attr = ""
var = MyCls()._attr
Expand Down
4 changes: 2 additions & 2 deletions src/aplustools/tests/test_data.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from aplustools.data import database, imagetools, updaters, faker, advanced_imagetools, compressor
from aplustools.data import database, imagetools, updaters, faker_pro, advanced_imagetools, compressor


class TestUpdaters:
Expand All @@ -18,7 +18,7 @@ def test_local(self):

class TestFaker:
def test_local(self):
assert faker.local_test()
assert faker_pro.local_test()


class TestImagetools:
Expand Down

0 comments on commit 9ebb11b

Please sign in to comment.