



'''simple docstring'''





import os
import sys
import unittest


lowercase_	 =						os.path.abspath(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
sys.path.append(os.path.join(git_repo_path, "utils"))

import get_test_info  # noqa: E402
from get_test_info import (  # noqa: E402
    get_model_to_test_mapping,
    get_model_to_tester_mapping,
    get_test_to_tester_mapping,
)


lowercase_	 =						os.path.join("tests", "models", "bert", "test_modeling_bert.py")
lowercase_	 =						os.path.join("tests", "models", "blip", "test_modeling_blip.py")






class __A    (						unittest.TestCase		):



	'''simple docstring'''







	def       a__						(self )					->  str:


						"""simple docstring"""



						_a											=						get_test_to_tester_mapping(A )
						_a											=						get_test_to_tester_mapping(A )

						_a											=						{'''BertModelTest''': '''BertModelTester'''}

						_a											=						{
						    '''BlipModelTest''': '''BlipModelTester''',
						    '''BlipTextImageModelTest''': '''BlipTextImageModelsModelTester''',
						    '''BlipTextModelTest''': '''BlipTextModelTester''',
						    '''BlipTextRetrievalModelTest''': '''BlipTextRetrievalModelTester''',
						    '''BlipVQAModelTest''': '''BlipVQAModelTester''',
						    '''BlipVisionModelTest''': '''BlipVisionModelTester''',
						}

						self.assertEqual(get_test_info.to_json(A )				,     A )
						self.assertEqual(get_test_info.to_json(A )				,     A )



	def       a__						(self )					->  int:


						"""simple docstring"""



						_a											=						get_model_to_test_mapping(A )
						_a											=						get_model_to_test_mapping(A )

						_a											=						{
						    '''BertForMaskedLM''': ['''BertModelTest'''],
						    '''BertForMultipleChoice''': ['''BertModelTest'''],
						    '''BertForNextSentencePrediction''': ['''BertModelTest'''],
						    '''BertForPreTraining''': ['''BertModelTest'''],
						    '''BertForQuestionAnswering''': ['''BertModelTest'''],
						    '''BertForSequenceClassification''': ['''BertModelTest'''],
						    '''BertForTokenClassification''': ['''BertModelTest'''],
						    '''BertLMHeadModel''': ['''BertModelTest'''],
						    '''BertModel''': ['''BertModelTest'''],
						}

						_a											=						{
						    '''BlipForConditionalGeneration''': ['''BlipTextImageModelTest'''],
						    '''BlipForImageTextRetrieval''': ['''BlipTextRetrievalModelTest'''],
						    '''BlipForQuestionAnswering''': ['''BlipVQAModelTest'''],
						    '''BlipModel''': ['''BlipModelTest'''],
						    '''BlipTextModel''': ['''BlipTextModelTest'''],
						    '''BlipVisionModel''': ['''BlipVisionModelTest'''],
						}

						self.assertEqual(get_test_info.to_json(A )				,     A )
						self.assertEqual(get_test_info.to_json(A )				,     A )



	def       a__						(self )					->  Tuple:


						"""simple docstring"""



						_a											=						get_model_to_tester_mapping(A )
						_a											=						get_model_to_tester_mapping(A )

						_a											=						{
						    '''BertForMaskedLM''': ['''BertModelTester'''],
						    '''BertForMultipleChoice''': ['''BertModelTester'''],
						    '''BertForNextSentencePrediction''': ['''BertModelTester'''],
						    '''BertForPreTraining''': ['''BertModelTester'''],
						    '''BertForQuestionAnswering''': ['''BertModelTester'''],
						    '''BertForSequenceClassification''': ['''BertModelTester'''],
						    '''BertForTokenClassification''': ['''BertModelTester'''],
						    '''BertLMHeadModel''': ['''BertModelTester'''],
						    '''BertModel''': ['''BertModelTester'''],
						}

						_a											=						{
						    '''BlipForConditionalGeneration''': ['''BlipTextImageModelsModelTester'''],
						    '''BlipForImageTextRetrieval''': ['''BlipTextRetrievalModelTester'''],
						    '''BlipForQuestionAnswering''': ['''BlipVQAModelTester'''],
						    '''BlipModel''': ['''BlipModelTester'''],
						    '''BlipTextModel''': ['''BlipTextModelTester'''],
						    '''BlipVisionModel''': ['''BlipVisionModelTester'''],
						}

						self.assertEqual(get_test_info.to_json(A )				,     A )
						self.assertEqual(get_test_info.to_json(A )				,     A )








'''simple docstring'''





# This is the module that test_patching.py uses to test patch_submodule()

import os  # noqa: this is just for tests
import os as renamed_os  # noqa: this is just for tests
from os import path  # noqa: this is just for tests
from os import path as renamed_path  # noqa: this is just for tests
from os.path import join  # noqa: this is just for tests
from os.path import join as renamed_join  # noqa: this is just for tests


lowercase_	 =						open  # noqa: we just need to have a builtin inside this module to test it properly



