Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
breadrock1 committed Aug 15, 2021
1 parent d86540e commit 4aded74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scrapers/osint/emailrep_scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __parse_response_data(self, response_data: Response) -> Dict:
try:
return response_data.json()
except JSONDecodeError as e:
print(f'Error while parsing response json data...')
print('Error while parsing response json data...')
return {}

def __get_user_data(self, email: str) -> Dict[str, Dict or str] or None:
Expand Down
8 changes: 3 additions & 5 deletions tests/test_parse_input_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@
from os.path import basename


def _readInputData(path: str) -> Dict[str, Dict]:
def _read_input_data(path: str) -> Dict[str, Dict]:
with open(path, 'r') as file:
data = load(
file
)
data = load(file)
file.close()

return data


def test_parse_input_file():
path_to_file = (Path() / 'tests' / 'users' / 'yuliya_chesnokova.json').absolute()
credentials = _readInputData(str(path_to_file))
credentials = _read_input_data(str(path_to_file))

try:
assert 'twitter' in credentials
Expand Down

0 comments on commit 4aded74

Please sign in to comment.