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

Commit

Permalink
fix(TCs): flake complained about import * (F405)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Jun 8, 2018
1 parent 25a8f6c commit dea53f6
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 18 deletions.
3 changes: 2 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pycallgraph import PyCallGraph, Config
import tempfile

from helpers import *
import pytest


@pytest.fixture(scope='module')
Expand Down
7 changes: 0 additions & 7 deletions test/helpers.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# flake8: noqa
import time

import pytest

import fix_path
from pycallgraph import *
from pycallgraph.tracer import *
from pycallgraph.output import *


def wait_100ms():
time.sleep(0.1)
Expand Down
4 changes: 3 additions & 1 deletion test/test_color.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
from helpers import *
from pycallgraph import ColorException, Color

import pytest


def test_bad_range():
Expand Down
10 changes: 8 additions & 2 deletions test/test_gephi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from helpers import *
from calls import *
from pycallgraph import PyCallGraph
from pycallgraph.output.gephi import GephiOutput
import os

import pytest

from test.calls import one_nop


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

3 changes: 2 additions & 1 deletion test/test_output.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from helpers import *
from pycallgraph import Config
from pycallgraph.output import Output


def test_set_config():
Expand Down
2 changes: 0 additions & 2 deletions test/test_script.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import subprocess

from helpers import *


def execute(arguments):
command = 'PYTHONPATH=. scripts/pycallgraph ' + arguments
Expand Down
8 changes: 5 additions & 3 deletions test/test_trace_processor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from pycallgraph.tracer import TraceProcessor
import re
import sys

from helpers import *
import calls
from pycallgraph.tracer import TraceProcessor
import pytest

from pycallgraph import Config
from test import calls


@pytest.fixture
Expand Down
2 changes: 1 addition & 1 deletion test/test_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from helpers import *
from pycallgraph.util import Util


def test_human_readable_biyte():
Expand Down

0 comments on commit dea53f6

Please sign in to comment.