Skip to content

Commit

Permalink
Workaround for pytest-rerunfailures bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bstaletic committed Oct 12, 2020
1 parent 34a1566 commit cbbfbc9
Show file tree
Hide file tree
Showing 87 changed files with 435 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ycmd/tests/bindings/cpp_bindings_general_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,3 +486,8 @@ def CppBindings_CompilationDatabase_test():
'-I/absolute/path',
'-Wall' )
} ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/bindings/cpp_bindings_raises_exception_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,8 @@ def CppBindings_CompilationInfo_NoInit_test():
assert_that( calling( ycm_core.CompilationInfoForFile ),
raises( TypeError, 'ycm_core.CompilationInfoForFile:'
' No constructor defined!' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/bindings/cpp_bindings_vectors_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,3 +367,8 @@ def CppBindings_CompletionDataVector_test():
'menu_text': 'a'
} )
) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/comment_strip_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,8 @@ def ClangCompleter_FormatRawComment_MultiLine_empty_test():
""" ) # noqa


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/debug_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,8 @@ def DebugInfo_Unity_test( app ):
)
} ) )
)


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/diagnostics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,8 @@ def Diagnostics_NoLimitToNumberOfDiagnostics_test( app ):
'fixit_available': False
} )
) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/flags_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,3 +1591,8 @@ def MakeRelativePathsInFlagsAbsolute_NoWorkingDir_test():
'expect': [ 'list', 'of', 'flags', 'not', 'changed', '-Itest' ],
'wd': ''
} )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1561,3 +1561,8 @@ def GetCompletions_FixIt_test( app ):
} )
}
} )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/include_cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,8 @@ def IncludeCache_Cached_NewMtime_test():
'entry_type': 1
} ) )
} ) ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/signature_help_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,8 @@ def SignatureHelp_NotImplemented_test( app ):
'errors': empty(),
'signature_help': EMPTY_SIGNATURE_HELP
} ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clang/subcommands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1633,3 +1633,8 @@ def Subcommands_StillParsingError_test( app ):
Subcommands_StillParsingError( app, 'GoToDeclaration' )
Subcommands_StillParsingError( app, 'GoToDefinition' )
Subcommands_StillParsingError( app, 'GoToImprecise' )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/debug_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,8 @@ def DebugInfo_ExtraConf_MacIncludeFlags_test( app ):
'items': empty()
} ) )
)


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/diagnostics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,3 +543,8 @@ def Diagnostics_UpdatedOnBufferVisit_test( app ):
# Assert no dirty files
with open( header_file, 'r' ) as f:
assert_that( f.read(), equal_to( old_header_content ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,3 +903,8 @@ def GetCompletions_SupportExtraConf_test( app ):
} )
}
} )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/server_management_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,8 @@ def ServerManagement_RestartServer_test( app ):
} ) )
} ) )
)


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/signature_help_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,3 +635,8 @@ def Signature_Help_Available_Disabled_By_User_test( app, *args ):
response = app.get( '/signature_help_available',
{ 'subserver': 'cpp' } ).json
assert_that( response, SignatureAvailableMatcher( 'NO' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/subcommands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1138,3 +1138,8 @@ def Subcommands_RefactorRename_test( app ):
'route': '/run_completer_command'
}
RunAfterInitialized( app, test )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/clangd/utilities_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,8 @@ def ClangdCompleter_StartServer_Fails_test( app ):
) )
assert_that( resp.status_code, equal_to( 200 ) )
shutdown.assert_called()


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/client_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,8 @@ def Wrapper( self, *args ):
sys.stdout.write( '\n' )

return Wrapper


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/completer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ def FilterAndSortCandidates_Unicode_test():
def DefinedSubcommands_RemoveStopServerSubcommand_test( subcommands_map ):
completer = DummyCompleter( DefaultOptions() )
assert_that( completer.DefinedSubcommands(), contains_exactly( 'Foo' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/completer_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,3 +236,8 @@ def PreparedTriggers_ObjectiveC_test():
'objc' ) )

assert_that( not triggers.MatchesForFiletype( '// foo ', 8, 8, 'objc' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/cs/debug_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,8 @@ def GetCompleter_CustomPathToServer_NotAFile_test( *args ):
user_options = user_options_store.GetAll().copy(
roslyn_binary_path = 'does-not-exist' )
assert_that( not GetCompleter( user_options ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/cs/diagnostics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,8 @@ def Diagnostics_MaximumDiagnosticsNumberExceeded_test( app ):
)
} )
) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/cs/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,8 @@ def GetCompletions_DoesntStartWithAmbiguousMultipleSolutions_test( app ):
"suitable solution file to feed it. Did you fiddle with the solution "
"finding code in cs_completer.py? Hopefully you've enhanced it: you need "
"to update this test then :)" )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/cs/signature_help_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,8 @@ def GetCompletions_Basic_NoSigHelp_test( app ):
),
'errors': empty(),
} ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/cs/subcommands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,3 +865,8 @@ def Subcommands_RangeFormat_Works_test( app ):
LocationMatcher( filepath, 9, 4 )
),
) } ) ) } ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/diagnostics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ def Diagnostics_DoesWork_test( get_detailed_diag, app ):

response = app.post_json( '/detailed_diagnostic', diag_data )
assert_that( response.json, MessageMatcher( 'detailed diagnostic' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/extra_conf_store_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,8 @@ def Load_DoNotReloadExtraConf_ForceEqualsTrue_test( app ):
def ExtraConfStore_IsGlobalExtraConfStore_NotAExtraConf_test():
assert_that( calling( extra_conf_store.IsGlobalExtraConfModule ).with_args(
extra_conf_store ), raises( AttributeError ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/filename_completer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,8 @@ def FilenameCompleter_AllFiletypesBlacklisted_test( app ):
results = app.post_json( '/completions',
completion_data ).json[ 'completions' ]
assert_that( results, empty() )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,3 +786,8 @@ def GetCompletions_FilterThenReturnFromCache_test( candidates_list,
CompletionEntryMatcher( 'cbc' ) ) )

assert_that( candidates_list.call_count, equal_to( 1 ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/debug_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,8 @@ def DebugInfo_ProjectDirectory_test( app ):
} ) ),
} ) )
)


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/diagnostics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,8 @@ def Diagnostics_Poll_test( app ):
'Timed out waiting for full set of diagnostics. '
f'Expected to see diags for { json.dumps( to_see, indent = 2 ) }, '
f'but only saw { json.dumps( sorted( seen.keys() ), indent = 2 ) }.' )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ def GetCompletions_Basic_test( app ):
# This completer does not require or support resolve
assert_that( results[ 0 ], is_not( has_key( 'resolve' ) ) )
assert_that( results[ 0 ], is_not( has_key( 'item' ) ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/go_completer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ def GetCompleter_GoplsNotFound_test( *args ):
def GetCompleter_GoplsFromUserOption_test( *args ):
user_options = user_options_store.GetAll().copy( gopls_binary_path = 'gopls' )
assert_that( GetCompleter( user_options )._gopls_path, equal_to( 'gopls' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/server_management_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@ def ServerManagement_StartServer_Fails_test( app ):
has_entry( 'is_running', False )
) )
) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/signature_help_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,8 @@ def Signature_Help_Available_test( app ):
response = app.get( '/signature_help_available',
{ 'subserver': 'go' } ).json
assert_that( response, SignatureAvailableMatcher( 'YES' ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/go/subcommands_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,3 +476,8 @@ def Subcommands_GoToReferences_test( app ):
test = { 'req': ( filepath, 10, 5 ), 'res': [ ( filepath, 10, 5 ),
( filepath, 13, 5 ) ] }
RunGoToTest( app, 'GoToReferences', test )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/hmac_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,8 @@ def CreateRequestHmac_WithBytes_test():
bytes( b'key' ) ) ),
equal_to( bytes( b'bfbb6bc7a2b3eca2a78f4e7ec8a7dfa7'
b'e58bb8974166eaf20e0224d999894b34' ) ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/identifier_completer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,3 +302,8 @@ def FilterUnchangedTagFiles_SkipUnchangesFiles_test():

assert_that( list( ident_completer._FilterUnchangedTagFiles( [ tag_file ] ) ),
empty() )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/identifier_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,3 +456,8 @@ def IdentifierAtIndex_SingleCharIdent_test():
def IdentifierAtIndex_Css_test():
assert_that( 'font-face', equal_to(
iu.IdentifierAtIndex( 'font-face', 0, 'css' ) ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/java/debug_info_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,8 @@ def DebugInfo_ExtraConf_SettingsValid_test( app ):
'servers': contains_exactly( has_entries( {
'name': 'jdt.ls',
'is_running': instance_of( bool ) } ) ) } ) ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/java/diagnostics_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,3 +779,8 @@ def AwaitMessages():

message_poll_task.join()
assert_that( state[ 'aborted' ] )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/java/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,3 +899,8 @@ def GetCompletions_UseServerTriggers_test( app ):
} )
}
} )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
5 changes: 5 additions & 0 deletions ycmd/tests/java/java_completer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,3 +234,8 @@ def JavaCompleter_GetDoc_test( app ):
return_value = False )
def JavaHook_JavaNotEnabled_test( *args ):
assert_that( hook.GetCompleter( {} ), equal_to( None ) )


def Dummy_test():
# Workaround for https://github.com/pytest-dev/pytest-rerunfailures/issues/51
assert True
Loading

0 comments on commit cbbfbc9

Please sign in to comment.