1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Replace all relative imports

This commit is contained in:
2022-05-09 01:40:08 -05:00
parent f7ed1c801c
commit e382683f66
79 changed files with 155 additions and 216 deletions

View File

@@ -8,7 +8,7 @@
import pytest
from ..conflict import (
from hscommon.conflict import (
get_conflicted_name,
get_unconflicted_name,
is_conflicted,
@@ -16,7 +16,7 @@ from ..conflict import (
smart_move,
)
from pathlib import Path
from ..testutil import eq_
from hscommon.testutil import eq_
class TestCaseGetConflictedName:

View File

@@ -4,8 +4,8 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from ..testutil import eq_
from ..notify import Broadcaster, Listener, Repeater
from hscommon.testutil import eq_
from hscommon.notify import Broadcaster, Listener, Repeater
class HelloListener(Listener):

View File

@@ -6,7 +6,7 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from ..path import pathify
from hscommon.path import pathify
from pathlib import Path

View File

@@ -6,8 +6,8 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from ..testutil import eq_, callcounter, CallLogger
from ..gui.selectable_list import SelectableList, GUISelectableList
from hscommon.testutil import eq_, callcounter, CallLogger
from hscommon.gui.selectable_list import SelectableList, GUISelectableList
def test_in():

View File

@@ -13,8 +13,8 @@ import sqlite3 as sqlite
from pytest import raises
from ..testutil import eq_
from ..sqlite import ThreadedConn
from hscommon.testutil import eq_
from hscommon.sqlite import ThreadedConn
# Threading is hard to test. In a lot of those tests, a failure means that the test run will
# hang forever. Well... I don't know a better alternative.

View File

@@ -6,8 +6,8 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from ..testutil import CallLogger, eq_
from ..gui.table import Table, GUITable, Row
from hscommon.testutil import CallLogger, eq_
from hscommon.gui.table import Table, GUITable, Row
class TestRow(Row):

View File

@@ -6,8 +6,8 @@
# which should be included with this package. The terms are also available at
# http://www.gnu.org/licenses/gpl-3.0.html
from ..testutil import eq_
from ..gui.tree import Tree, Node
from hscommon.testutil import eq_
from hscommon.gui.tree import Tree, Node
def tree_with_some_nodes():

View File

@@ -10,9 +10,9 @@ from io import StringIO
from pytest import raises
from ..testutil import eq_
from hscommon.testutil import eq_
from pathlib import Path
from ..util import (
from hscommon.util import (
nonone,
tryint,
first,