added testing
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
|
||||
from motionFunctionsLib import plc
|
||||
from motionFunctionsLib import E_MotionFunctions
|
||||
def main():
|
||||
print("package entry")
|
||||
@@ -0,0 +1,3 @@
|
||||
|
||||
def main():
|
||||
print("package entry")
|
||||
Binary file not shown.
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
|
||||
from enum import *
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: mfl
|
||||
Version: 0.0.2
|
||||
Summary: Wraper for pyads
|
||||
Author-email: RomanBerti <roman.berti09@gmail.com>
|
||||
License-Expression: MIT
|
||||
Requires-Python: >=3.13
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE.txt
|
||||
Dynamic: license-file
|
||||
@@ -0,0 +1,27 @@
|
||||
LICENSE.txt
|
||||
README.md
|
||||
pyproject.toml
|
||||
.idea/.gitignore
|
||||
.idea/misc.xml
|
||||
.idea/modules.xml
|
||||
.idea/motion_libs.iml
|
||||
.idea/vcs.xml
|
||||
.idea/workspace.xml
|
||||
.idea/inspectionProfiles/profiles_settings.xml
|
||||
dist/mfl-0.0.0-py3-none-any.whl
|
||||
dist/mfl-0.0.0.tar.gz
|
||||
dist/mfl-0.0.1-py3-none-any.whl
|
||||
dist/mfl-0.0.1.tar.gz
|
||||
dist/mfl-0.0.2-py3-none-any.whl
|
||||
dist/mfl-0.0.2.tar.gz
|
||||
mfl.egg-info/PKG-INFO
|
||||
mfl.egg-info/SOURCES.txt
|
||||
mfl.egg-info/dependency_links.txt
|
||||
mfl.egg-info/top_level.txt
|
||||
src/__init__.py
|
||||
src/eAxisParameters.py
|
||||
src/motionFunctionsLib.py
|
||||
src/mfl.egg-info/PKG-INFO
|
||||
src/mfl.egg-info/SOURCES.txt
|
||||
src/mfl.egg-info/dependency_links.txt
|
||||
src/mfl.egg-info/top_level.txt
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
__init__
|
||||
eAxisParameters
|
||||
motionFunctionsLib
|
||||
Binary file not shown.
@@ -0,0 +1,22 @@
|
||||
|
||||
import unittest
|
||||
|
||||
class TestImportPackage(unittest.TestCase):
|
||||
def test_import_main_package(self):
|
||||
try:
|
||||
import motionFunctionsLib
|
||||
except Exception as e:
|
||||
self.fail(f"Importing your_package_name failed: {e}")
|
||||
|
||||
|
||||
def test_has_expected_attributes(self):
|
||||
import motionFunctionsLib
|
||||
for attr in ["plc", "E_MotionFunctions", "E_HomingRoutines", "E_PneumaticAxisErrors"]:
|
||||
with self.subTest(attr=attr):
|
||||
self.assertTrue(
|
||||
hasattr(motionFunctionsLib, attr),
|
||||
f"{attr} not found in motionFunctionsLib"
|
||||
)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user