Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating tests #18

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements/common.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
requests==2.20.0
requests==2.20.0
3 changes: 3 additions & 0 deletions tests/test_advisory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import unittest
from unittest import mock
import requests

from openVulnQuery import advisory
from openVulnQuery import constants

Expand Down
4 changes: 2 additions & 2 deletions tests/test_authorization.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest

import mock
import requests
from unittest import mock

from openVulnQuery import authorization
from openVulnQuery import config

Expand Down
1 change: 1 addition & 0 deletions tests/test_cli_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import unittest
import os
import inspect
import requests

from openVulnQuery import config
from openVulnQuery import cli_api
Expand Down
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import os
import unittest
import requests

from openVulnQuery import config

Expand Down
1 change: 1 addition & 0 deletions tests/test_constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import unittest
import requests

from openVulnQuery import constants

Expand Down
2 changes: 2 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import unittest
from unittest import mock
import requests

from openVulnQuery import advisory
from openVulnQuery import config
Expand Down
1 change: 0 additions & 1 deletion tests/test_query_client.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import unittest
import mock
import requests
import json
from openVulnQuery import query_client
Expand Down
1 change: 0 additions & 1 deletion tests/test_query_client_cvrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import unittest
import pytest

import mock
from openVulnQuery import advisory
from openVulnQuery import config
from openVulnQuery import query_client
Expand Down
1 change: 0 additions & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import unittest
import mock
import sys
import json
import pytest
Expand Down