diff options
| author | Roberto Bertó <463349+robertoberto@users.noreply.github.com> | 2026-05-19 02:54:59 +0000 |
|---|---|---|
| committer | Roberto Bertó <463349+robertoberto@users.noreply.github.com> | 2026-05-19 02:54:59 +0000 |
| commit | a2df70609a4711b4eb673f28cee3e6f72414148a (patch) | |
| tree | 972f05e70f17ddbe0337c4e2cc48797475131413 /test_quick.py | |
| parent | bf4e309a698592cdb815580f97db97b268fd6668 (diff) | |
| download | pyvyos-a2df70609a4711b4eb673f28cee3e6f72414148a.tar.gz pyvyos-a2df70609a4711b4eb673f28cee3e6f72414148a.zip | |
chore: trim root, move examples, drop committed uv.lock
- delete CONTRIB.md (superseded by CONTRIBUTING.md)
- delete requirements.txt (duplicated [project].dependencies)
- delete test_quick.py (ad-hoc smoke covered by tests/test_shims.py)
- rewrite example.py as examples/basic.py using the public API
(from pyvyos import VyDevice) and drop the RuntimeWarning suppression
- move vagrant/ to examples/vagrant/
- stop tracking uv.lock and add it to .gitignore (library, not app)
- README: link the examples/ directory
- CHANGELOG: document the moves and removals
Diffstat (limited to 'test_quick.py')
| -rw-r--r-- | test_quick.py | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test_quick.py b/test_quick.py deleted file mode 100644 index 9e93ca6..0000000 --- a/test_quick.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python3 -"""Quick test script to verify imports and shims work.""" - -def test_imports(): - """Test all import paths.""" - print("Testing imports...") - - # Public API - from pyvyos import VyDevice, ApiResponse - print("✓ Public API imports work") - - # Shim modules - from pyvyos.device import VyDevice as DeviceShim - from pyvyos.rest import RestClient, ApiResponse as RestResponse - print("✓ Shim module imports work") - - # Core modules - from pyvyos.core.device import VyDevice as CoreDevice - from pyvyos.core.rest_client import RestClient as CoreRestClient - print("✓ Core module imports work") - - # Identity checks - assert DeviceShim is VyDevice, "Device shim identity failed" - assert RestResponse is ApiResponse, "Rest shim identity failed" - assert CoreDevice is VyDevice, "Core device identity failed" - print("✓ All identity checks pass") - - # Utils - from pyvyos.utils import redact_key, request_id, build_path - print("✓ Utils imports work") - - # Exceptions - from pyvyos.exceptions import SDKError, HttpError, ApiError, ValidationError - print("✓ Exceptions imports work") - - print("\n✅ All imports and shims working correctly!") - -if __name__ == "__main__": - test_imports() - |
