netherframe.testing 0.2.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,39 @@
1
+ """A Terraform plugin cache that test runs and xdist workers share.
2
+
3
+ Provider binaries are large (the AWS provider is ~800 MB unpacked), so giving every worker its own
4
+ cache in pytest's temp directory (often a RAM-backed /tmp) downloaded and stored one copy per
5
+ worker per run. Tests share one on-disk cache instead. Terraform doesn't lock its plugin cache, so
6
+ ``terraform init`` runs hold :func:`terraform_init_lock`: once a provider is cached, init only
7
+ links it, so the lock is held briefly.
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ from contextlib import contextmanager
13
+ from pathlib import Path
14
+ from collections.abc import Generator
15
+
16
+ from netherframe.testing.options import option
17
+
18
+
19
+ def terraform_plugin_cache_dir() -> Path:
20
+ """The shared cache: ``pytest --nf-terraform-plugin-cache-dir``, else ``~/.nf/terraform-plugin-cache``."""
21
+ cache_dir = Path(option("--nf-terraform-plugin-cache-dir") or Path.home() / ".nf" / "terraform-plugin-cache").expanduser()
22
+ cache_dir.mkdir(parents=True, exist_ok=True)
23
+ return cache_dir
24
+
25
+
26
+ @contextmanager
27
+ def terraform_init_lock(cache_dir: Path) -> Generator[None]:
28
+ """Serialize ``terraform init`` runs that use ``cache_dir`` (POSIX; a no-op elsewhere)."""
29
+ try:
30
+ import fcntl # noqa: PLC0415 - POSIX only
31
+ except ImportError:
32
+ yield
33
+ return
34
+ with (cache_dir / ".nf-terraform-init.lock").open("a") as handle:
35
+ fcntl.flock(handle, fcntl.LOCK_EX)
36
+ try:
37
+ yield
38
+ finally:
39
+ fcntl.flock(handle, fcntl.LOCK_UN)
@@ -0,0 +1,26 @@
1
+ Metadata-Version: 2.4
2
+ Name: netherframe.testing
3
+ Version: 0.2.0
4
+ Summary: Test harnesses, FakeCloud pytest plugin, and state-backend contract suites for Netherframe
5
+ Author: Sourabh Cheedella
6
+ Author-email: Sourabh Cheedella <cheedella.sourabh@gmail.com>
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3.14
12
+ Classifier: Programming Language :: Python :: 3.15
13
+ Classifier: Topic :: Software Development :: Testing
14
+ Requires-Dist: netherframe-core>=0.12.0,<1.0.0
15
+ Requires-Dist: pytest>=9.2.0
16
+ Requires-Dist: fakecloud>=0.52.0 ; extra == 'fakecloud'
17
+ Requires-Python: >=3.14
18
+ Project-URL: Homepage, https://netherframe.arsenal.sh
19
+ Project-URL: Repository, https://github.com/arsenal-sh/netherframe
20
+ Provides-Extra: fakecloud
21
+ Description-Content-Type: text/markdown
22
+
23
+ # netherframe.testing
24
+
25
+ Test harnesses, in-memory graph state backend, state-backend contract suites,
26
+ and the `netherframe-fakecloud` pytest plugin extracted from `netherframe.core`.
@@ -0,0 +1,35 @@
1
+ netherframe/testing/__init__.py,sha256=U_h8ujBgCndafDo-_inJ93ZTTbkMJQDisTazuL6wWYY,44
2
+ netherframe/testing/fakecloud.py,sha256=ua_w_VTAQMa4wa9MD56MrvGnjb_cZWI9NJINPA7y0W8,22388
3
+ netherframe/testing/graph_memory.py,sha256=FQ15Fy6m4Tact-IXtDIu9Bms2i7TJLkKqGuWkt-8llw,87782
4
+ netherframe/testing/graph_scenarios.py,sha256=kcC4vnb9ZWdTaAMrskkhToF9StJkP_QFc_I6vgsqsKc,14232
5
+ netherframe/testing/log_capture.py,sha256=MK2TiPHxs-d8MkhLYtPZWFTSm4Gz2WvVtH4KsiR744I,1577
6
+ netherframe/testing/options.py,sha256=8DRhLTUWJDRPqc2VZWxAHj25C4YN9AMGb5vwVNKcOZ4,7758
7
+ netherframe/testing/patching.py,sha256=OQRDyBbGG53Pl6E_1q97cctVrLG1Eo-oVnzgz93XujA,521
8
+ netherframe/testing/provider_sources.py,sha256=qli1d_fW3lLI009DQeJEUKxt-kseiV2OmAMqCQ_KdO8,2354
9
+ netherframe/testing/provider_test_helpers.py,sha256=-K_WfQis0qkkbI9wipmp9Ig7dmUEh3opz4ycMfTAMvk,1019
10
+ netherframe/testing/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ netherframe/testing/pytest_fakecloud.py,sha256=IIQGl1c4lYB9VPOrWZq9F60FYnTqaYCLEipoRbvoI_g,3205
12
+ netherframe/testing/pytest_workspace.py,sha256=Bu60w0h4nuhcwnuRD4rlWTD0j-0rnD5SwwS4KP3foK8,5540
13
+ netherframe/testing/schema_cache.py,sha256=Pth8ziYxfE_CyQrV2CLaVNlc9yiNc6bzeEEsd5sSuV4,2622
14
+ netherframe/testing/state_backend_contract.py,sha256=TX49VGIQyDCJsB57soTXPrg4m_iD1aXj8J1XtBFLF1s,33412
15
+ netherframe/testing/terraform_cache.py,sha256=otQZM0NkLGQyOQQERSbxEsMoLsj-8thDOeJ9mVMcQqc,1532
16
+ nf/testing/__init__.py,sha256=Askbj_bVaVGzBt7di1MbX-I6eLAgg8Ad3UkVv0J_x5s,872
17
+ nf/testing/fakecloud.py,sha256=WVJs_b4nsFMqT7L8vyhsqPaf_32o9YplvRN-GmWINW4,912
18
+ nf/testing/graph_memory.py,sha256=B22QqHEuBtQdLSEP5BVtUnzuEYXb4hNXE49hVQGHxc0,924
19
+ nf/testing/graph_scenarios.py,sha256=Zyw_MEPMwxxbqkfX_3ThYVxPRjxvVc-th4wtcJeKWjY,936
20
+ nf/testing/log_capture.py,sha256=7miRdfJSbqqYlbGiDfM3gjJBEXDOK8CkHhkmeeqe8ew,920
21
+ nf/testing/options.py,sha256=SsfPlXatup5PW8t_wpQf2Ked7kMv23KKyyFpGUPspY8,904
22
+ nf/testing/patching.py,sha256=K3oT7Qt9a2ZhA6Rhx8MH4BemFfqVC4pM_eakE9NcF4g,908
23
+ nf/testing/provider_sources.py,sha256=qfwanOJq_t4F-6PlAkLYac3VvNCmX1-T6kGZRlWn6jk,940
24
+ nf/testing/provider_test_helpers.py,sha256=P5n1owljF9hQ7P-dts8icQmrMXiPRE3Kyp8gMUSlsY8,960
25
+ nf/testing/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
+ nf/testing/pytest_fakecloud.py,sha256=aWUtpbkEoOb2utahKf7Pu1REYt5Wzus-CRHCz0vKrHg,940
27
+ nf/testing/pytest_workspace.py,sha256=3-7zp2GguEbimmMVPs5NU9-UXAYrvQ7xmHe5Ib5xg80,940
28
+ nf/testing/schema_cache.py,sha256=QoHTwOVQBqZSZrwq4kmJb4i949VbA7k5ZJjZ6km7rU0,924
29
+ nf/testing/state_backend_contract.py,sha256=9AzFFZgh8nsovqyH1Q-gIvVuSbcWy0zijg2famzL9Zs,964
30
+ nf/testing/terraform_cache.py,sha256=qnf-T9j9yffpSwJvkqzUbMGdF-8bkISZnHKflF9ADZM,936
31
+ netherframe_testing-0.2.0.dist-info/licenses/LICENSE,sha256=CmCIBOHbWRqBeux1f3l5G7rXwtrrtVCZwymYiSoAYoE,1068
32
+ netherframe_testing-0.2.0.dist-info/WHEEL,sha256=G_-rrEibZr7OEM7zdH1dSO6s-VdjfnS5PA4CLAdI9Vw,80
33
+ netherframe_testing-0.2.0.dist-info/entry_points.txt,sha256=fEG4Mt64xOJgUsl-F2Bx-MB89HkB9IgCT3o2YM-Vw08,73
34
+ netherframe_testing-0.2.0.dist-info/METADATA,sha256=CwxyZvXZfkR5Q14GD7RrpKAKYsbsiKYLvteeJF_aJhU,1065
35
+ netherframe_testing-0.2.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: uv 0.13.9
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [pytest11]
2
+ netherframe-fakecloud = netherframe.testing.pytest_fakecloud
3
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Netherframe
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
nf/testing/__init__.py ADDED
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing``; at runtime it is ``netherframe.testing`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.fakecloud``; at runtime it is ``netherframe.testing.fakecloud`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.fakecloud import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.fakecloud")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.graph_memory``; at runtime it is ``netherframe.testing.graph_memory`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.graph_memory import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.graph_memory")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.graph_scenarios``; at runtime it is ``netherframe.testing.graph_scenarios`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.graph_scenarios import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.graph_scenarios")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.log_capture``; at runtime it is ``netherframe.testing.log_capture`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.log_capture import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.log_capture")
nf/testing/options.py ADDED
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.options``; at runtime it is ``netherframe.testing.options`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.options import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.options")
nf/testing/patching.py ADDED
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.patching``; at runtime it is ``netherframe.testing.patching`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.patching import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.patching")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.provider_sources``; at runtime it is ``netherframe.testing.provider_sources`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.provider_sources import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.provider_sources")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.provider_test_helpers``; at runtime it is ``netherframe.testing.provider_test_helpers`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.provider_test_helpers import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.provider_test_helpers")
nf/testing/py.typed ADDED
File without changes
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.pytest_fakecloud``; at runtime it is ``netherframe.testing.pytest_fakecloud`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.pytest_fakecloud import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.pytest_fakecloud")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.pytest_workspace``; at runtime it is ``netherframe.testing.pytest_workspace`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.pytest_workspace import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.pytest_workspace")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.schema_cache``; at runtime it is ``netherframe.testing.schema_cache`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.schema_cache import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.schema_cache")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.state_backend_contract``; at runtime it is ``netherframe.testing.state_backend_contract`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.state_backend_contract import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.state_backend_contract")
@@ -0,0 +1,21 @@
1
+ # Generated nf.* alias shim (netherframe.generation.nf_alias_shims); do not edit.
2
+ """Type-checker view of ``nf.testing.terraform_cache``; at runtime it is ``netherframe.testing.terraform_cache`` itself."""
3
+
4
+ from typing import TYPE_CHECKING
5
+
6
+ if TYPE_CHECKING:
7
+ from netherframe.testing.terraform_cache import * # noqa: F403
8
+ else:
9
+ # Runs only without the import hook (python -S, zipimport, some bundlers): install it, so
10
+ # nf.* imports from now on, this module's submodules included, return the netherframe.*
11
+ # modules, and return the netherframe.* module for this import too.
12
+ import importlib as _importlib
13
+ import sys as _sys
14
+
15
+ try:
16
+ import netherframe_nf_alias as _nf_alias
17
+ except ImportError: # netherframe.core, which ships the hook, is not installed
18
+ pass
19
+ else:
20
+ _nf_alias.install()
21
+ _sys.modules[__name__] = _importlib.import_module("netherframe.testing.terraform_cache")