Skip to content

Commit e465626

Browse files
committed
Formatting
1 parent ab7bf4a commit e465626

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

diffsync/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
Set,
3030
)
3131
from typing_extensions import deprecated
32-
import warnings
3332

3433
from pydantic import ConfigDict, BaseModel, PrivateAttr
3534
import structlog # type: ignore

tests/unit/test_deprecation.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
1+
"""Unit tests for the DiffSync deprecation warning.
12
2-
from diffsync import DiffSync
3+
Copyright (c) 2020-2024 Network To Code, LLC <info@networktocode.com>
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""
317

418
import pytest
519

20+
from diffsync import DiffSync
21+
22+
623
def test_diffsync_deprecation_warning():
24+
"""Test that `DiffSync` causes a deprecation warning."""
725
with pytest.deprecated_call():
8-
class TestAdapter(DiffSync):
26+
27+
class TestAdapter(DiffSync): # pylint:disable=missing-class-docstring
928
pass
29+
1030
TestAdapter()

0 commit comments

Comments
 (0)