Skip to content

Commit 1901636

Browse files
authored
Add constants to test coverage (scrapd#135)
Adds constants to test coverage and remove unused/unnecessary code.
1 parent 5bb0601 commit 1901636

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.coveragerc

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
omit =
33
*__init__.py
44
scrapd/cli/*
5-
scrapd/config.py
6-
scrapd/core/constant.py
75
scrapd/core/version.py
86
scrapd/main.py
97
scrapd/tests/*

scrapd/core/constant.py

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
"""Define the scrapd constants."""
2-
from abc import ABC
32

43

5-
class Constant(ABC):
6-
"""Define the constant class."""
7-
8-
def __setattr__(self, *_):
9-
"""Ensure the attributes are read only.."""
10-
raise AttributeError('This attribute is read only.')
11-
12-
13-
class Fields(Constant):
4+
class Fields():
145
"""Define the resource constants."""
156

167
AGE = 'Age'

0 commit comments

Comments
 (0)