diff --git a/tests/test_account.py b/tests/test_account.py index f79966e..174eab3 100644 --- a/tests/test_account.py +++ b/tests/test_account.py @@ -27,12 +27,9 @@ from flask import Flask from flask.testing import FlaskCliRunner from test_site import db -from testlib import create_test_app, get_client, set_locale +from testlib import NEXT_URI, create_test_app, get_client, set_locale from testlib_journal_entry import add_journal_entry -NEXT_URI: str = "/_next" -"""The next URI.""" - class AccountData: """The account data.""" diff --git a/tests/test_currency.py b/tests/test_currency.py index c6a040e..6da5e96 100644 --- a/tests/test_currency.py +++ b/tests/test_currency.py @@ -28,8 +28,8 @@ from flask import Flask from flask.testing import FlaskCliRunner from test_site import db -from testlib import create_test_app, get_client, set_locale -from testlib_journal_entry import add_journal_entry, NEXT_URI +from testlib import NEXT_URI, create_test_app, get_client, set_locale +from testlib_journal_entry import add_journal_entry class CurrencyData: diff --git a/tests/test_description_editor.py b/tests/test_description_editor.py index 97b2402..8ef8fc1 100644 --- a/tests/test_description_editor.py +++ b/tests/test_description_editor.py @@ -24,8 +24,8 @@ from click.testing import Result from flask import Flask from flask.testing import FlaskCliRunner -from testlib import create_test_app, get_client -from testlib_journal_entry import Accounts, NEXT_URI, add_journal_entry +from testlib import NEXT_URI, create_test_app, get_client +from testlib_journal_entry import Accounts, add_journal_entry class DescriptionEditorTestCase(unittest.TestCase): diff --git a/tests/test_journal_entry.py b/tests/test_journal_entry.py index b50128f..1c522ae 100644 --- a/tests/test_journal_entry.py +++ b/tests/test_journal_entry.py @@ -27,8 +27,8 @@ from flask import Flask from flask.testing import FlaskCliRunner from test_site import db -from testlib import create_test_app, get_client -from testlib_journal_entry import NEXT_URI, NON_EMPTY_NOTE, EMPTY_NOTE, \ +from testlib import NEXT_URI, create_test_app, get_client +from testlib_journal_entry import NON_EMPTY_NOTE, EMPTY_NOTE, \ Accounts, get_add_form, get_unchanged_update_form, get_update_form, \ match_journal_entry_detail, set_negative_amount, \ remove_debit_in_a_currency, remove_credit_in_a_currency, add_journal_entry diff --git a/tests/test_option.py b/tests/test_option.py index 4b6302c..15fbfc5 100644 --- a/tests/test_option.py +++ b/tests/test_option.py @@ -26,8 +26,8 @@ from flask import Flask from flask.testing import FlaskCliRunner from test_site import db -from testlib import create_test_app, get_client -from testlib_journal_entry import NEXT_URI, Accounts +from testlib import NEXT_URI, create_test_app, get_client +from testlib_journal_entry import Accounts from testlib_offset import TestData PREFIX: str = "/accounting/options" diff --git a/tests/testlib.py b/tests/testlib.py index c0a0204..a67d0c8 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -26,6 +26,8 @@ from test_site import create_app TEST_SERVER: str = "https://testserver" """The test server URI.""" +NEXT_URI: str = "/_next" +"""The next URI.""" def create_test_app() -> Flask: diff --git a/tests/testlib_journal_entry.py b/tests/testlib_journal_entry.py index 9d2a056..f770a66 100644 --- a/tests/testlib_journal_entry.py +++ b/tests/testlib_journal_entry.py @@ -26,9 +26,8 @@ import httpx from flask import Flask from test_site import db +from testlib import NEXT_URI -NEXT_URI: str = "/_next" -"""The next URI.""" NON_EMPTY_NOTE: str = " This is \n\na test." """The stripped content of an non-empty note.""" EMPTY_NOTE: str = " \n\n " diff --git a/tests/testlib_offset.py b/tests/testlib_offset.py index f7d53ce..13c1f5c 100644 --- a/tests/testlib_offset.py +++ b/tests/testlib_offset.py @@ -26,8 +26,8 @@ import httpx from flask import Flask from test_site import db -from testlib_journal_entry import Accounts, match_journal_entry_detail, \ - NEXT_URI +from testlib import NEXT_URI +from testlib_journal_entry import Accounts, match_journal_entry_detail class JournalEntryLineItemData: