Skip to content

Commit e864413

Browse files
author
Joel Collins
committed
Improved LabThing coverage
1 parent f96ba90 commit e864413

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

tests/conftest.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
@pytest.fixture
1111
def view_cls():
12-
class ViewClass(View):
12+
class EmptyViewClass(View):
1313
def get(self):
1414
pass
1515

@@ -22,6 +22,24 @@ def put(self):
2222
def delete(self):
2323
pass
2424

25+
return EmptyViewClass
26+
27+
28+
@pytest.fixture
29+
def view_cls():
30+
class ViewClass(View):
31+
def get(self):
32+
return "GET"
33+
34+
def post(self):
35+
return "POST"
36+
37+
def put(self):
38+
return "PUT"
39+
40+
def delete(self):
41+
return "DELETE"
42+
2543
return ViewClass
2644

2745

0 commit comments

Comments
 (0)