test: Reduce flaky integration tests triggered by `test_get_tag` (#25958)

This commit is contained in:
Sebastian Liebscher 2023-11-13 17:40:52 +01:00 committed by GitHub
parent b430b5a172
commit c3249dd97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 7 deletions

View File

@ -17,10 +17,12 @@
# isort:skip_file
"""Unit tests for Superset"""
import json
from datetime import datetime
from flask import g
import pytest
import prison
from freezegun import freeze_time
from sqlalchemy.sql import func
from sqlalchemy import and_
from superset.models.dashboard import Dashboard
@ -121,6 +123,7 @@ class TestTagApi(SupersetTestCase):
"""
Query API: Test get query
"""
with freeze_time(datetime.now()):
tag = self.insert_tag(
name="test get tag",
tag_type="custom",