Skip to content

Commit 7ff082a

Browse files
committed
Add test for fetch.copy deprecation
1 parent 8b495ea commit 7ff082a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_fetch_deprecated.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ def test_fetch1_squeeze_deprecation(self):
5252
(self.subject & 'subject_id = 10').fetch1.squeeze()
5353
assert_warning_about(w, "deprecated")
5454

55+
def test_fetch_copy_deprecation(self):
56+
with warnings.catch_warnings(record=True) as w:
57+
self.subject.fetch.copy()
58+
assert_warning_about(w, "deprecated")
59+
60+
def test_fetch1_copy_deprecation(self):
61+
with warnings.catch_warnings(record=True) as w:
62+
(self.subject & 'subject_id = 10').fetch1.copy()
63+
assert_warning_about(w, "deprecated")
64+
5565
def test_limit_deprecation(self):
5666
with warnings.catch_warnings(record=True) as w:
5767
self.subject.fetch.limit(10)

0 commit comments

Comments
 (0)