Skip to content

Commit

Permalink
[Ruff] sort imports in test_cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
benjwadams committed Jul 16, 2024
1 parent e5913fa commit 2a4ddfb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions compliance_checker/tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Tests for command line output and parsing
"""
import importlib.util
import io
import json
import os
Expand All @@ -11,7 +12,6 @@
import sys
from argparse import Namespace
from collections import defaultdict
import importlib.util
from importlib.machinery import SourceFileLoader

import pytest
Expand Down Expand Up @@ -281,7 +281,10 @@ def test_parse_options():
"""Test the option parser of cchecker.py"""
# Load cchecker.py
cchecker_file_path = os.path.join(
os.path.dirname(__file__), "..", "..", "cchecker.py"
os.path.dirname(__file__),
"..",
"..",
"cchecker.py",
)
spec = importlib.util.spec_from_file_location("cchecker", cchecker_file_path)
module = importlib.util.module_from_spec(spec)
Expand Down

0 comments on commit 2a4ddfb

Please sign in to comment.