Skip to content

Commit c8c200a

Browse files
jorwoodsjacalata
authored andcommitted
chore: pytestify views (#1707)
* fix: black ci errors * chore: pytestify views * chore: pytestify view acceleration --------- Co-authored-by: Jordan Woods <13803242+jorwoods@users.noreply.github.com>
1 parent ce8d0dc commit c8c200a

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test/test_view.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -520,20 +520,3 @@ def test_view_get_all_fields(server: TSC.Server) -> None:
520520
assert isinstance(views[2].location, TSC.LocationItem)
521521
assert views[2].location.id == "669ca36b-492e-4ccf-bca1-3614fe6a9d7a"
522522
assert views[2].location.type == "Project"
523-
524-
525-
def make_view() -> TSC.ViewItem:
526-
view = TSC.ViewItem()
527-
view._id = "1234"
528-
return view
529-
530-
531-
@pytest.mark.parametrize("view", [make_view, "1234"])
532-
def test_delete_view(server: TSC.Server, view: TSC.ViewItem | str) -> None:
533-
server.version = "3.27"
534-
id_ = getattr(view, "id", view)
535-
with requests_mock.mock() as m:
536-
m.delete(f"{server.views.baseurl}/{id_}")
537-
server.views.delete(view)
538-
assert m.called
539-
assert m.call_count == 1

0 commit comments

Comments
 (0)