Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports/variables via autoflake #38

Merged
merged 2 commits into from
Jan 20, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove unused imports via autoflake
  • Loading branch information
blueyed committed Jan 20, 2019
commit 450331554984bce6d64598a59d723ff9d366819e
3 changes: 0 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
import logging
import itertools
import pytest
import py
import os
import subprocess
import datetime
import time
import calendar

default_levels = loguru._logger.Logger._levels.copy()

Expand Down
3 changes: 0 additions & 3 deletions tests/test_add_options.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import json
import pytest
import sys
import multiprocessing
from unittest.mock import MagicMock
from loguru import logger
import ansimarkup
import io
import os
import colorama


Expand Down
2 changes: 0 additions & 2 deletions tests/test_catch_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import pytest
import traceback
import textwrap
import re
from loguru import logger

zero_division_error = "ZeroDivisionError: division by zero\n"
Expand Down
1 change: 0 additions & 1 deletion tests/test_defaults.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import pytest
from loguru._defaults import env
import os


@pytest.mark.parametrize("value", ["test", ""])
Expand Down
2 changes: 0 additions & 2 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import pytest
import textwrap
import py
import os
import sys
from itertools import zip_longest, dropwhile
import re
Expand Down
1 change: 0 additions & 1 deletion tests/test_filesink_rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def test_time_rotation(monkeypatch_date, tmpdir, when, hours):

i = logger.add(str(tmpdir.join("test_{time}.log")), format="{message}", rotation=when, mode="w")

from loguru._datetime import now as nownow

for h, m in zip(hours, ["a", "b", "c", "d", "e"]):
now += datetime.timedelta(hours=h)
Expand Down
4 changes: 1 addition & 3 deletions tests/test_interception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import sys
import logging
import pytest

from loguru import logger

Expand All @@ -12,7 +10,7 @@ def emit(self, record):

def test_formatting(writer, make_logging_logger):
fmt = "{name} - {file.name} - {function} - {level.name} - {level.no} - {line} - {module} - {message}"
expected = "tests.test_interception - test_interception.py - test_formatting - Level 10 - 10 - 21 - test_interception - This is the message\n"
expected = "tests.test_interception - test_interception.py - test_formatting - Level 10 - 10 - 19 - test_interception - This is the message\n"

logging_logger = make_logging_logger("tests", InterceptHandler())

Expand Down
1 change: 0 additions & 1 deletion tests/test_parse.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import pytest
import random
import re
import pathlib
import io
Expand Down