Skip to content

Commit

Permalink
config_compliance -> compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
amyasnikov committed Dec 26, 2023
1 parent 7266ebc commit 08f5815
Show file tree
Hide file tree
Showing 22 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion validity/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from validity import config, filtersets, models
from validity.choices import SeverityChoices
from validity.config_compliance.exceptions import DeviceConfigError
from validity.compliance.exceptions import DeviceConfigError
from . import serializers


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion validity/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from dcim.models import Device

from validity.config_compliance.device_config import DeviceConfig
from validity.compliance.device_config import DeviceConfig
from validity.j2_env import Environment
from validity.managers import VDeviceQS
from .data import VDataFile, VDataSource
Expand Down
2 changes: 1 addition & 1 deletion validity/models/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from tenancy.models import Tenant

from validity.choices import BoolOperationChoices, DynamicPairsChoices
from validity.config_compliance.dynamic_pairs import DynamicPairNameFilter, dpf_factory
from validity.compliance.dynamic_pairs import DynamicPairNameFilter, dpf_factory
from validity.utils.misc import reraise
from .base import BaseModel
from .device import VDevice
Expand Down
6 changes: 3 additions & 3 deletions validity/scripts/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
from simpleeval import InvalidExpression

import validity
import validity.config_compliance.eval.default_nameset as default_nameset
from validity.config_compliance.eval import ExplanationalEval
from validity.config_compliance.exceptions import DeviceConfigError, EvalError
import validity.compliance.eval.default_nameset as default_nameset
from validity.compliance.eval import ExplanationalEval
from validity.compliance.exceptions import DeviceConfigError, EvalError
from validity.models import (
ComplianceReport,
ComplianceSelector,
Expand Down
2 changes: 1 addition & 1 deletion validity/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
TenantFactory,
)

from validity.config_compliance.device_config import DeviceConfig
from validity.compliance.device_config import DeviceConfig


class TestDBNameSet(ApiPostGetTest):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import yaml
from factories import DataFileFactory, DeviceFactory

from validity.config_compliance.device_config import DeviceConfig
from validity.compliance.device_config import DeviceConfig
from validity.models.data import VDataFile


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@
from extras.models import Tag
from factories import DeviceFactory, SelectorFactory, TagFactory

from validity.config_compliance.dynamic_pairs import (
DynamicPairNameFilter,
DynamicPairTagFilter,
NoneFilter,
dpf_factory,
)
from validity.compliance.dynamic_pairs import DynamicPairNameFilter, DynamicPairTagFilter, NoneFilter, dpf_factory


@pytest.mark.parametrize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from deepdiff.serialization import json_dumps
from simpleeval import InvalidExpression

from validity.config_compliance.eval import ExplanationalEval, default_nameset, eval_defaults
from validity.config_compliance.exceptions import EvalError
from validity.compliance.eval import ExplanationalEval, default_nameset, eval_defaults
from validity.compliance.exceptions import EvalError


EXPR_1 = '{"param_1": "val_1", "param_2": "val_2"} == {"param_1": "val_1"}'
Expand Down
2 changes: 1 addition & 1 deletion validity/tests/test_scripts/test_run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from factories import CompTestDBFactory, DeviceFactory, NameSetDBFactory, ReportFactory, SelectorFactory
from simpleeval import InvalidExpression

from validity.config_compliance.exceptions import EvalError
from validity.compliance.exceptions import EvalError
from validity.models import ComplianceReport, ComplianceTestResult, VDevice
from validity.scripts import run_tests
from validity.scripts.run_tests import RunTestsScript as RunTestsMixin
Expand Down
2 changes: 1 addition & 1 deletion validity/views/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from netbox.views import generic
from utilities.views import ViewTab, register_model_view

from validity.config_compliance.exceptions import DeviceConfigError
from validity.compliance.exceptions import DeviceConfigError
from validity.models import VDevice
from .base import TestResultBaseView

Expand Down
2 changes: 1 addition & 1 deletion validity/views/test_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from utilities.views import register_model_view

from validity import filtersets, forms, models, tables
from validity.config_compliance.eval import repr_
from validity.compliance.eval import repr_


class ComplianceResultListView(generic.ObjectListView):
Expand Down

0 comments on commit 08f5815

Please sign in to comment.