From 3f483bec7d75794bec5f600368a158bd1f52fba5 Mon Sep 17 00:00:00 2001 From: Daniel Townsend Date: Sat, 15 Jun 2024 20:42:47 +0100 Subject: [PATCH] move decorator to right file --- piccolo/query/functions/string.py | 7 ------- tests/query/functions/test_string.py | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/piccolo/query/functions/string.py b/piccolo/query/functions/string.py index a881f57a7..68b78219f 100644 --- a/piccolo/query/functions/string.py +++ b/piccolo/query/functions/string.py @@ -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 @@ -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, diff --git a/tests/query/functions/test_string.py b/tests/query/functions/test_string.py index eb84818c4..bd3a8c2ab 100644 --- a/tests/query/functions/test_string.py +++ b/tests/query/functions/test_string.py @@ -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 @@ -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):