Skip to content

Commit

Permalink
refactor(REST): Sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
asyrjasalo committed Jul 29, 2024
1 parent 0ecaed7 commit 91bc00c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 19 deletions.
10 changes: 4 additions & 6 deletions src/REST/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@
# Licensed under GNU Lesser General Public License v3 (LGPL-3.0).

from io import open

from json import dumps, load, loads
from os import path
from yaml import load as load_yaml, SafeLoader

from pygments import highlight, lexers, formatters
from requests.packages.urllib3 import disable_warnings

from urllib.parse import urlparse

from pygments import formatters, highlight, lexers
from requests.packages.urllib3 import disable_warnings
from robot.api import logger
from yaml import SafeLoader
from yaml import load as load_yaml

from .keywords import Keywords
from .version import __version__
Expand Down
18 changes: 7 additions & 11 deletions src/REST/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,27 @@
# Copyright(C) 2018- Anssi Syrjäsalo (http://a.syrjasalo.com)
# Licensed under GNU Lesser General Public License v3 (LGPL-3.0).

from io import open

from pytz import utc, UnknownTimeZoneError
from tzlocal import get_localzone

from collections import OrderedDict
from copy import deepcopy
from datetime import datetime
from io import open
from json import dumps
from os import path, getcwd
from os import getcwd, path
from urllib.parse import parse_qsl, urljoin, urlparse

from flex.core import validate_api_call
from genson import SchemaBuilder
from jsonpath_ng.ext import parse as parse_jsonpath
from jsonschema import validate, FormatChecker
from jsonschema import FormatChecker, validate
from jsonschema.exceptions import SchemaError, ValidationError
from pytz import UnknownTimeZoneError, utc
from requests import request as client
from requests.auth import HTTPDigestAuth, HTTPBasicAuth, HTTPProxyAuth
from requests.auth import HTTPBasicAuth, HTTPDigestAuth, HTTPProxyAuth
from requests.exceptions import SSLError, Timeout

from urllib.parse import parse_qsl, urljoin, urlparse

from robot.api import logger
from robot.api.deco import keyword
from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError
from tzlocal import get_localzone

from .schema_keywords import SCHEMA_KEYWORDS

Expand Down
1 change: 1 addition & 0 deletions test/test_keywords.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import unittest
from unittest.mock import MagicMock

from src import REST


Expand Down
5 changes: 3 additions & 2 deletions test/test_output.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import io
import os
import re
import unittest
import sys
import unittest
from unittest.mock import MagicMock, mock_open, patch

from src import REST
import io


class TestOutputLogJsonCalling(unittest.TestCase):
Expand Down

0 comments on commit 91bc00c

Please sign in to comment.