Skip to content

[BUG] Some undefined code has imported causing error and failing test cases #84

@inzamrzn918

Description

@inzamrzn918

Current behaviour

Undefined modules are

  • from tix.storage.context_storage import ContextStorage
  • from .storage import storage
  • from .context import context_storage

Steps to reproduce

Run pytest, and you will be able to see errors like

_________________________________________ ERROR collecting tests/test_undo_redo.py _________________________________________
ImportError while importing test module 'C:\Projects\OSS\tix-cli\tests\test_undo_redo.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
C:\Users\inzam\AppData\Local\Programs\Python\Python313\Lib\importlib_init_.py:88: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests\test_undo_redo.py:8: in
import tix.cli as cli
tix\cli.py:11: in
from tix.storage.context_storage import ContextStorage
E ModuleNotFoundError: No module named 'tix.storage.context_storage'

Expected outcome

All tests should pass

Screenshots / Recordings

Image

Acceptance Criteria

100% test should pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions