Closed guidovranken closed 9 years ago
Same motivation as posited in https://github.com/Intelworks/taxii-client/issues/16 applies here.
(this was run on taxii-server-adding-tests)
$ find -name '*.py' -exec pyflakes {} \; ./tests/services/test_discovery.py:11: 'from fixtures import *' used; unable to detect undefined names ./tests/services/fixtures.py:1: 'from libtaxii.constants import *' used; unable to detect undefined names ./tests/services/utils.py:4: 'from taxii_server.taxii.http import *' used; unable to detect undefined names ./tests/services/test_inbox.py:14: 'from fixtures import *' used; unable to detect undefined names ./tests/services/test_inbox.py:60: local variable 'collections' is assigned to but never used ./tests/test_http.py:7: 'ST_NOT_FOUND' imported but unused ./tests/test_http.py:7: 'ST_SUCCESS' imported but unused ./tests/test_http.py:12: 'from taxii_server.taxii.http import *' used; unable to detect undefined names ./taxii_server/middleware.py:3: 'jsonify' imported but unused ./taxii_server/middleware.py:6: 'from taxii.http import *' used; unable to detect undefined names ./taxii_server/middleware.py:15: 'configure_logging' imported but unused ./taxii_server/server.py:1: 'namedtuple' imported but unused ./taxii_server/options.py:2: 'sys' imported but unused ./taxii_server/options.py:7: 'ContentBinding' imported but unused ./taxii_server/options.py:8: 'SimpleRenderer' imported but unused ./taxii_server/taxii/services/collection_management.py:8: redefinition of unused 'CollectionInformationRequestHandler' from line 8 ./taxii_server/taxii/services/collection_management.py:8: redefinition of unused 'SubscriptionRequestHandler' from line 8 ./taxii_server/taxii/services/collection_management.py:29: undefined name 'DiscoveryService' ./taxii_server/taxii/services/handlers/inbox_message_handlers.py:4: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/services/handlers/inbox_message_handlers.py:6: 'StatusMessageException' imported but unused ./taxii_server/taxii/services/handlers/poll_request_handlers.py:8: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/services/handlers/poll_request_handlers.py:94: local variable 'response' is assigned to but never used ./taxii_server/taxii/services/handlers/base_handlers.py:1: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/services/handlers/base_handlers.py:4: 'StatusMessageException' imported but unused ./taxii_server/taxii/services/handlers/poll_fulfilment_request_handlers.py:6: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/services/handlers/__init__.py:2: 'DiscoveryRequestHandler' imported but unused ./taxii_server/taxii/services/handlers/__init__.py:3: 'InboxMessageHandler' imported but unused ./taxii_server/taxii/services/handlers/subscription_request_handlers.py:7: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/services/abstract.py:40: local variable 'e' is assigned to but never used ./taxii_server/taxii/services/__init__.py:2: 'InboxService' imported but unused ./taxii_server/taxii/services/__init__.py:3: 'DiscoveryService' imported but unused ./taxii_server/taxii/transform.py:2: 'tdq' imported but unused ./taxii_server/taxii/transform.py:6: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/entities.py:3: 'from bindings import *' used; unable to detect undefined names ./taxii_server/taxii/http.py:2: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/http.py:4: 'from bindings import *' used; unable to detect undefined names ./taxii_server/taxii/http.py:5: 'raise_failure' imported but unused ./taxii_server/taxii/http.py:6: 'parse_message' imported but unused ./taxii_server/taxii/bindings.py:5: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/utils.py:2: 'dateutil' imported but unused ./taxii_server/taxii/utils.py:5: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/status.py:1: 'from libtaxii.constants import *' used; unable to detect undefined names ./taxii_server/taxii/status.py:6: 'deepcopy' imported but unused ./taxii_server/taxii/status.py:8: 'from http import *' used; unable to detect undefined names ./taxii_server/persistence/sql/models.py:1: 'backref' imported but unused ./taxii_server/persistence/sql/models.py:2: 'Index' imported but unused ./taxii_server/persistence/sql/models.py:2: 'UniqueConstraint' imported but unused ./taxii_server/persistence/sql/models.py:2: 'PrimaryKeyConstraint' imported but unused ./taxii_server/persistence/sql/models.py:3: 'Enum' imported but unused ./taxii_server/persistence/sql/models.py:3: 'Date' imported but unused ./taxii_server/persistence/sql/models.py:6: 'event' imported but unused ./taxii_server/persistence/sql/models.py:86: redefinition of function 'content_binding' from line 82 ./taxii_server/persistence/sql/models.py:127: redefinition of function 'supported_content' from line 123 ./taxii_server/persistence/sql/__init__.py:1: 'sqlalchemy' imported but unused ./taxii_server/persistence/sql/__init__.py:4: 'from taxii_server.taxii.entities import *' used; unable to detect undefined names ./taxii_server/utils.py:1: 'os' imported but unused ./taxii_server/utils.py:2: 'sys' imported but unused ./taxii_server/utils.py:3: 'logging' imported but unused ./taxii_server/utils.py:4: 'structlog' imported but unused
covered by integrating with landscape.io
landscape.io
Same motivation as posited in https://github.com/Intelworks/taxii-client/issues/16 applies here.
(this was run on taxii-server-adding-tests)