Skip to content

Commit

Permalink
move decorator to right file
Browse files Browse the repository at this point in the history
  • Loading branch information
dantownsend committed Jun 15, 2024
1 parent e58f882 commit 3f483be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions piccolo/query/functions/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@

import typing as t

import pytest

from piccolo.columns.base import Column
from piccolo.columns.column_types import Text, Varchar
from piccolo.querystring import QueryString
from tests.base import engine_version_lt, is_running_sqlite

from .base import Function

Expand Down Expand Up @@ -72,10 +69,6 @@ class Upper(Function):
function_name = "UPPER"


@pytest.mark.skipif(
is_running_sqlite() and engine_version_lt(3.44),
reason="SQLite version not supported",
)
class Concat(QueryString):
def __init__(
self,
Expand Down
7 changes: 7 additions & 0 deletions tests/query/functions/test_string.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import pytest

from piccolo.query.functions.string import Concat, Upper
from tests.base import engine_version_lt, is_running_sqlite
from tests.example_apps.music.tables import Band

from .base import BandTest
Expand All @@ -25,6 +28,10 @@ def test_joined_column(self):
self.assertListEqual(response, [{"upper": "GUIDO"}])


@pytest.mark.skipif(
is_running_sqlite() and engine_version_lt(3.44),
reason="SQLite version not supported",
)
class TestConcat(BandTest):

def test_column_and_string(self):
Expand Down

0 comments on commit 3f483be

Please sign in to comment.