|
@@ -10,6 +10,7 @@
|
|
# specific language governing permissions and limitations under the License.
|
|
# specific language governing permissions and limitations under the License.
|
|
|
|
|
|
import argparse
|
|
import argparse
|
|
|
|
+import typing as t
|
|
|
|
|
|
import pytest
|
|
import pytest
|
|
|
|
|
|
@@ -54,7 +55,7 @@ def remove_subparser(name: str) -> None:
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
@pytest.fixture
|
|
-def clean_argparser() -> callable:
|
|
|
|
|
|
+def clean_argparser() -> t.Callable:
|
|
"""Fixture to clean the argument parser."""
|
|
"""Fixture to clean the argument parser."""
|
|
def _clean_argparser() -> None:
|
|
def _clean_argparser() -> None:
|
|
_TaipyParser._parser = argparse.ArgumentParser(conflict_handler="resolve")
|
|
_TaipyParser._parser = argparse.ArgumentParser(conflict_handler="resolve")
|
|
@@ -68,7 +69,7 @@ def clean_argparser() -> callable:
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
@pytest.fixture
|
|
-def reset_configuration_singleton() -> callable:
|
|
|
|
|
|
+def reset_configuration_singleton() -> t.Callable:
|
|
"""Fixture to reset the configuration singleton."""
|
|
"""Fixture to reset the configuration singleton."""
|
|
def _reset_configuration_singleton() -> None:
|
|
def _reset_configuration_singleton() -> None:
|
|
Config.unblock_update()
|
|
Config.unblock_update()
|
|
@@ -87,7 +88,7 @@ def reset_configuration_singleton() -> callable:
|
|
|
|
|
|
|
|
|
|
@pytest.fixture
|
|
@pytest.fixture
|
|
-def inject_core_sections() -> callable:
|
|
|
|
|
|
+def inject_core_sections() -> t.Callable:
|
|
"""Fixture to inject core sections into the configuration."""
|
|
"""Fixture to inject core sections into the configuration."""
|
|
def _inject_core_sections() -> None:
|
|
def _inject_core_sections() -> None:
|
|
_inject_section(
|
|
_inject_section(
|