Skip to content

Commit 50d7e52

Browse files
committed
tests
1 parent d1f4c9d commit 50d7e52

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

src/tests/test_magic.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@
2929

3030
from conftest import runsql
3131
from sql.connection import PLOOMBER_DOCS_LINK_STR
32-
from ploomber_core.exceptions import COMMUNITY
3332
import psutil
3433

35-
COMMUNITY = COMMUNITY.strip()
3634

3735
DISPLAYLIMIT_LINK = (
3836
'<a href="https://jupysql.ploomber.io/en/'
@@ -1163,7 +1161,6 @@ def test_autolimit(ip):
11631161
Set the environment variable $DATABASE_URL
11641162
11651163
For more details, see: {PLOOMBER_DOCS_LINK_STR}
1166-
{COMMUNITY}
11671164
"""
11681165

11691166

@@ -1181,7 +1178,6 @@ def test_error_on_invalid_connection_string(ip_empty, clean_conns):
11811178
Ref: https://docs.sqlalchemy.org/en/20/core/engines.html#database-urls
11821179
11831180
For more details, see: {PLOOMBER_DOCS_LINK_STR}
1184-
{COMMUNITY}
11851181
""" # noqa
11861182

11871183

@@ -1207,7 +1203,6 @@ def test_error_on_invalid_connection_string_with_existing_conns(ip_empty, clean_
12071203
Perhaps you meant to use driver the dialect: "sqlite"
12081204
12091205
For more details, see: {PLOOMBER_DOCS_LINK_STR}
1210-
{COMMUNITY}
12111206
""" # noqa
12121207

12131208

@@ -1235,7 +1230,6 @@ def test_error_on_invalid_connection_string_with_possible_typo(ip_empty, clean_c
12351230
Example: %sql postgresql://username:password@hostname/dbname
12361231
12371232
For more details, see: {PLOOMBER_DOCS_LINK_STR}
1238-
{COMMUNITY}
12391233
""" # noqa
12401234

12411235

src/tests/test_magic_plot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,6 @@ def test_sqlplot_snippet_deletion(ip_snippets, arg):
780780
TABLE_NAME_TYPO_MSG = """
781781
There is no table with name 'subst' in the default schema
782782
Did you mean: 'subset'
783-
If you need help solving this issue, send us a message: https://ploomber.io/community
784783
"""
785784

786785

@@ -793,7 +792,6 @@ def test_sqlplot_snippet_typo(ip_snippets):
793792

794793
MISSING_TABLE_ERROR_MSG = """
795794
There is no table with name 'missing' in the default schema
796-
If you need help solving this issue, send us a message: https://ploomber.io/community
797795
"""
798796

799797

src/tests/test_syntax_errors.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
from IPython.core.error import UsageError
66

77
from sql.error_handler import ORIGINAL_ERROR, CTE_MSG
8-
from ploomber_core.exceptions import COMMUNITY
9-
10-
11-
COMMUNITY = COMMUNITY.strip()
128

139

1410
@pytest.fixture
@@ -39,7 +35,6 @@ def query_multiple():
3935
def _common_strings_check(err):
4036
assert ORIGINAL_ERROR.strip() in str(err.value)
4137
assert CTE_MSG.strip() in str(err.value)
42-
assert COMMUNITY in str(err.value)
4338
assert isinstance(err.value, UsageError)
4439

4540

@@ -51,7 +46,6 @@ def test_syntax_error_incorrect_column_name(ip, query_incorrect_column_name):
5146

5247
message_incorrect_column_name_long = f"""\
5348
(sqlite3.OperationalError) near "FROM": syntax error
54-
{COMMUNITY}
5549
[SQL: SELECT first_(name FROM author;]
5650
""" # noqa
5751

@@ -75,7 +69,6 @@ def test_syntax_error_multiple_statements(ip, query_multiple):
7569

7670
message_multiple_statements_long = f"""\
7771
(sqlite3.OperationalError) near ";": syntax error
78-
{COMMUNITY}
7972
[SQL: ALTER TABLE author RENAME another_name;]
8073
""" # noqa
8174

0 commit comments

Comments
 (0)