Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit dea53f6

Browse files
committed
fix(TCs): flake complained about import * (F405)
1 parent 25a8f6c commit dea53f6

8 files changed

Lines changed: 21 additions & 18 deletions

File tree

test/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from pycallgraph import PyCallGraph, Config
12
import tempfile
23

3-
from helpers import *
4+
import pytest
45

56

67
@pytest.fixture(scope='module')

test/helpers.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
# flake8: noqa
22
import time
33

4-
import pytest
5-
6-
import fix_path
7-
from pycallgraph import *
8-
from pycallgraph.tracer import *
9-
from pycallgraph.output import *
10-
114

125
def wait_100ms():
136
time.sleep(0.1)

test/test_color.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
from helpers import *
1+
from pycallgraph import ColorException, Color
2+
3+
import pytest
24

35

46
def test_bad_range():

test/test_gephi.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
from helpers import *
2-
from calls import *
1+
from pycallgraph import PyCallGraph
2+
from pycallgraph.output.gephi import GephiOutput
3+
import os
4+
5+
import pytest
6+
7+
from test.calls import one_nop
38

49

510
@pytest.fixture
@@ -19,3 +24,4 @@ def test_simple(gephi):
1924
assert 'edgedef> node1 VARCHAR, node2 VARCHAR' in generated
2025
assert 'calls.one_nop,calls.one_nop,calls,1' in generated
2126
assert 'calls.one_nop,calls.nop,1' in generated
27+

test/test_output.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from helpers import *
1+
from pycallgraph import Config
2+
from pycallgraph.output import Output
23

34

45
def test_set_config():

test/test_script.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import subprocess
22

3-
from helpers import *
4-
53

64
def execute(arguments):
75
command = 'PYTHONPATH=. scripts/pycallgraph ' + arguments

test/test_trace_processor.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
from pycallgraph.tracer import TraceProcessor
12
import re
23
import sys
34

4-
from helpers import *
5-
import calls
6-
from pycallgraph.tracer import TraceProcessor
5+
import pytest
6+
7+
from pycallgraph import Config
8+
from test import calls
79

810

911
@pytest.fixture

test/test_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from helpers import *
1+
from pycallgraph.util import Util
22

33

44
def test_human_readable_biyte():

0 commit comments

Comments
 (0)