Skip to content

Commit

Permalink
Remove some debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
awarde96 committed Jan 26, 2024
1 parent b2a50fe commit 8c9f682
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ jobs:
files: coverage.xml
deploy:
needs: test
if: ${{ github.event_name == 'release' }}
name: Upload to Pypi
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 1 addition & 4 deletions eccovjson/Coverage.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
class Coverage:
def __init__(self, covjson):
if isinstance(covjson, dict):
print("Received Coverage")
self.coverage = covjson

self.type = self.coverage.pop("type")

if self.type == "Coverage":
print("Correct Type")
elif self.type == "CoverageCollection":
if self.type == "CoverageCollection":
raise TypeError("Coverage class takes coverage not CoverageCollection")
5 changes: 1 addition & 4 deletions eccovjson/CoverageCollection.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
class CoverageCollection:
def __init__(self, covjson):
if isinstance(covjson, dict):
print("Received Coverage")
self.coverage = covjson

self.type = self.coverage["type"]

if self.type == "CoverageCollection":
print("Correct Type")
elif self.type == "Coverage":
if self.type == "Coverage":
raise TypeError("CoverageCollection class takes CoverageCollection not Coverage")

self.coverages = self.coverage["coverages"]

0 comments on commit 8c9f682

Please sign in to comment.