Skip to content

Commit

Permalink
Update remove dead code and clarify test case with updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kholdaway committed Oct 18, 2017
1 parent 538055f commit e30d34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions quipucords/api/fact_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from rest_framework import viewsets, mixins
from api.fact_model import FactCollection
from api.fact_serializer import FactCollectionSerializer
from fingerprinter import Engine


# pylint: disable=too-many-ancestors
Expand All @@ -30,7 +29,3 @@ class FactViewSet(mixins.CreateModelMixin,

queryset = FactCollection.objects.all()
serializer_class = FactCollectionSerializer

def __init__(self, *args, **kwargs):
super(FactViewSet, self).__init__(*args, **kwargs)
self.engine = Engine()
6 changes: 3 additions & 3 deletions quipucords/api/tests_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_get_report_list(self):

url = '/api/v1/reports/'

# Create a system fingerprint
# Create a system fingerprint via fact collection receiver
self.create_fact_collection(
os_versions=['7.4', '7.4', '7.5'])

Expand All @@ -66,7 +66,7 @@ def test_get_fact_collection_report(self):

url = '/api/v1/reports/'

# Create a system fingerprint
# Create a system fingerprint via collection receiver
self.create_fact_collection(
os_versions=['7.4', '7.4', '7.5'])

Expand All @@ -83,7 +83,7 @@ def test_get_fact_collection_404(self):

url = '/api/v1/reports/'

# Create a system fingerprint
# Create a system fingerprint via collection receiver
self.create_fact_collection(
os_versions=['7.4', '7.4', '7.5'])

Expand Down

0 comments on commit e30d34f

Please sign in to comment.