Skip flaky tests on MySQL
This commit is contained in:
parent
ba69b9c002
commit
20b583fd01
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,8 @@ def _lookup_logs(logs_model, start_time, end_time, **kwargs):
|
||||||
return logs_found
|
return logs_found
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(os.environ.get('TEST_DATABASE_URI', '').find('mysql') >= 0,
|
||||||
|
reason='Flaky on MySQL')
|
||||||
@pytest.mark.parametrize('namespace_name, repo_name, performer_name, check_args, expect_results', [
|
@pytest.mark.parametrize('namespace_name, repo_name, performer_name, check_args, expect_results', [
|
||||||
pytest.param('devtable', 'simple', 'devtable', {}, True, id='no filters'),
|
pytest.param('devtable', 'simple', 'devtable', {}, True, id='no filters'),
|
||||||
pytest.param('devtable', 'simple', 'devtable', {
|
pytest.param('devtable', 'simple', 'devtable', {
|
||||||
|
@ -121,6 +123,8 @@ def test_count_repository_actions(logs_model):
|
||||||
assert count == 2
|
assert count == 2
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skipif(os.environ.get('TEST_DATABASE_URI', '').find('mysql') >= 0,
|
||||||
|
reason='Flaky on MySQL')
|
||||||
def test_yield_logs_for_export(logs_model):
|
def test_yield_logs_for_export(logs_model):
|
||||||
# Add some logs.
|
# Add some logs.
|
||||||
kinds = list(LogEntryKind.select())
|
kinds = list(LogEntryKind.select())
|
||||||
|
|
Reference in a new issue