renamed to menu
This commit is contained in:
@@ -3,7 +3,7 @@ import logging
|
||||
import re
|
||||
from pathlib import Path
|
||||
|
||||
import food.meal
|
||||
import food.menu
|
||||
import pytest
|
||||
from appdaemon.appdaemon import AppDaemon
|
||||
from git import Repo
|
||||
@@ -33,7 +33,7 @@ def insert_import_error(path: Path):
|
||||
def test_file(ad: AppDaemon, caplog: pytest.LogCaptureFixture, config_repo: Repo):
|
||||
assert isinstance(ad, AppDaemon)
|
||||
|
||||
module_file = Path(food.meal.__file__)
|
||||
module_file = Path(food.menu.__file__)
|
||||
modify_file(module_file)
|
||||
|
||||
try:
|
||||
@@ -52,7 +52,7 @@ def test_file(ad: AppDaemon, caplog: pytest.LogCaptureFixture, config_repo: Repo
|
||||
def test_file_with_error(ad: AppDaemon, caplog: pytest.LogCaptureFixture, config_repo: Repo):
|
||||
assert isinstance(ad, AppDaemon)
|
||||
|
||||
module_file = Path(food.meal.__file__)
|
||||
module_file = Path(food.menu.__file__)
|
||||
insert_import_error(module_file)
|
||||
|
||||
try:
|
||||
|
||||
@@ -15,8 +15,7 @@ def validate_app_dependencies(ad: AppDaemon):
|
||||
|
||||
def validate_module_dependencies(ad: AppDaemon):
|
||||
graph = ad.app_management.module_dependencies
|
||||
assert 'food' in graph['restaurant']
|
||||
assert 'food.meal' in graph['restaurant']
|
||||
assert 'food.menu' in graph['restaurant']
|
||||
|
||||
|
||||
def validate_module_load_order(ad: AppDaemon, module_load_order: List[str]):
|
||||
|
||||
Reference in New Issue
Block a user