File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 29
29
Set ,
30
30
)
31
31
from typing_extensions import deprecated
32
- import warnings
33
32
34
33
from pydantic import ConfigDict , BaseModel , PrivateAttr
35
34
import structlog # type: ignore
Original file line number Diff line number Diff line change
1
+ """Unit tests for the DiffSync deprecation warning.
1
2
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
+ """
3
17
4
18
import pytest
5
19
20
+ from diffsync import DiffSync
21
+
22
+
6
23
def test_diffsync_deprecation_warning ():
24
+ """Test that `DiffSync` causes a deprecation warning."""
7
25
with pytest .deprecated_call ():
8
- class TestAdapter (DiffSync ):
26
+
27
+ class TestAdapter (DiffSync ): # pylint:disable=missing-class-docstring
9
28
pass
29
+
10
30
TestAdapter ()
You can’t perform that action at this time.
0 commit comments