Exemple #1
0
 def test_instantiation_default_to_base(self):
     ''' Tests if create returns a base dataset model, when a new dataset is sent '''
     chart = SourceFactory().create("non-specific")
     self.assertTrue(isinstance(chart, BaseSource))
Exemple #2
0
 def test_instantiation_rfb(self):
     ''' Tests if create returns a base RFB dataset model '''
     chart = SourceFactory().create('rfb')
     self.assertTrue(isinstance(chart, BaseRfb))
Exemple #3
0
 def test_instantiation_default_to_base_no_dataset(self):
     ''' Tests if create returns a base dataset model, when no dataset is sent '''
     chart = SourceFactory().create(None)
     self.assertTrue(isinstance(chart, BaseSource))
Exemple #4
0
 def test_instantiation_rfb_socios(self):
     ''' Tests if create returns a RFB-Socios dataset model '''
     chart = SourceFactory().create('rfbsocios')
     self.assertTrue(isinstance(chart, RfbSocios))
Exemple #5
0
 def test_instantiation_rfb_participacao_societaria(self):
     ''' Tests if create returns a RFB-Participacao-Societaria dataset model '''
     chart = SourceFactory().create('rfbparticipacaosocietaria')
     self.assertTrue(isinstance(chart, RfbParticipacaoSocietaria))
Exemple #6
0
 def test_instantiation_renavam(self):
     ''' Tests if create returns a Renavam dataset model '''
     chart = SourceFactory().create('renavam')
     self.assertTrue(isinstance(chart, Renavam))
Exemple #7
0
 def test_instantiation_sisben(self):
     ''' Tests if create returns a SISBEN dataset model '''
     chart = SourceFactory().create('sisben')
     self.assertTrue(isinstance(chart, Sisben))
Exemple #8
0
 def test_instantiation_catweb(self):
     ''' Tests if create returns a CATWEB dataset model '''
     chart = SourceFactory().create('catweb')
     self.assertTrue(isinstance(chart, Catweb))
Exemple #9
0
 def test_instantiation_rais(self):
     ''' Tests if create returns a RAIS dataset model '''
     chart = SourceFactory().create('rais')
     self.assertTrue(isinstance(chart, Rais))
Exemple #10
0
 def test_instantiation_auto(self):
     ''' Tests if create returns a Auto dataset model '''
     chart = SourceFactory().create('auto')
     self.assertTrue(isinstance(chart, Auto))
Exemple #11
0
 def test_instantiation_aeronaves(self):
     ''' Tests if create returns a Aeronaves dataset model '''
     chart = SourceFactory().create('aeronaves')
     self.assertTrue(isinstance(chart, Aeronaves))
Exemple #12
0
 def test_instantiation_caged_trabalhador_ano(self):
     ''' Tests if create returns a Base Caged dataset model for cagedtrabalhadorano '''
     chart = SourceFactory().create('cagedtrabalhadorano')
     self.assertTrue(isinstance(chart, BaseCaged))
Exemple #13
0
 def test_instantiation_caged_saldo(self):
     ''' Tests if create returns a Caged Saldo dataset model '''
     chart = SourceFactory().create('cagedsaldo')
     self.assertTrue(isinstance(chart, CagedSaldo))
Exemple #14
0
 def get_stats_local_options(options, local_cols, dataframe, persp):
     ''' Create options according to tables and queriy conditions '''
     return SourceFactory.create(dataframe).get_options_empresa(
         options, local_cols, dataframe, persp)