Skip to content

Commit 3007218

Browse files
Merge pull request #1348 from datajoint/remove/dj-kill
Remove dj.kill and dj.kill_quick
2 parents a5ddd03 + 6d4e390 commit 3007218

File tree

4 files changed

+0
-130
lines changed

4 files changed

+0
-130
lines changed

src/datajoint/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"Top",
4040
"U",
4141
"Diagram",
42-
"kill",
4342
"MatCell",
4443
"MatStruct",
4544
# Codec API
@@ -94,8 +93,6 @@
9493
# Diagram imports networkx and matplotlib
9594
"Diagram": (".diagram", "Diagram"),
9695
"diagram": (".diagram", None), # Return the module itself
97-
# kill imports pymysql via connection
98-
"kill": (".admin", "kill"),
9996
# cli imports click
10097
"cli": (".cli", "cli"),
10198
}

src/datajoint/admin.py

Lines changed: 0 additions & 101 deletions
This file was deleted.

src/datajoint/table.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,6 @@
5050
)
5151

5252

53-
class _RenameMap(tuple):
54-
"""for internal use"""
55-
56-
pass
57-
58-
5953
@dataclass
6054
class ValidationResult:
6155
"""

tests/unit/test_lazy_imports.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,6 @@ def test_lazy_diagram_import():
2727
assert Diagram.__name__ == "Diagram"
2828

2929

30-
def test_lazy_admin_import():
31-
"""Admin module should not be loaded until dj.kill is accessed."""
32-
# Remove datajoint from sys.modules to get fresh import
33-
modules_to_remove = [key for key in sys.modules if key.startswith("datajoint")]
34-
for mod in modules_to_remove:
35-
del sys.modules[mod]
36-
37-
# Import datajoint
38-
import datajoint as dj
39-
40-
# Admin module should not be loaded yet
41-
assert "datajoint.admin" not in sys.modules, "admin module loaded eagerly"
42-
43-
# Access kill - should trigger lazy load
44-
kill = dj.kill
45-
assert "datajoint.admin" in sys.modules, "admin module not loaded after access"
46-
assert callable(kill)
47-
48-
4930
def test_lazy_cli_import():
5031
"""CLI module should not be loaded until dj.cli is accessed."""
5132
# Remove datajoint from sys.modules to get fresh import
@@ -103,5 +84,4 @@ def test_core_imports_available():
10384

10485
# Heavy modules should still not be loaded
10586
assert "datajoint.diagram" not in sys.modules
106-
assert "datajoint.admin" not in sys.modules
10787
assert "datajoint.cli" not in sys.modules

0 commit comments

Comments
 (0)