Exemplo n.º 1
0
    class Meta:
        model = RamanSet
        sqlalchemy_session = dal.Session()
        sqlalchemy_session_persistence = "commit"

    #sample = factory.SubFactory("test.database.factories.SampleFactory", raman_set=None)
    #raman_spectra = factory.SubFactory("test.database.factories.RamanSpectrumFactory", raman_set=None)
    # setauthors = factory.RelatedFactoryList(
    #     "test.database.factories.AuthorFactory",
    #     "raman_set",
    #     size=lambda: LIST_SIZES[random.randint(0, 5)],
    # )
Exemplo n.º 2
0
 class Meta:
     model = SemAnalysis
     sqlalchemy_session = dal.Session()
     sqlalchemy_session_persistence = "commit"
Exemplo n.º 3
0
 class Meta:
     model = Author
     sqlalchemy_session = dal.Session()
     sqlalchemy_session_persistence = "commit"
Exemplo n.º 4
0
 class Meta:
     model = RamanFile
     sqlalchemy_session = dal.Session()
     sqlalchemy_session_persistence = "commit"
Exemplo n.º 5
0
 class Meta:
     model = PreparationStep
     sqlalchemy_session = dal.Session()
     sqlalchemy_session_persistence = "commit"
Exemplo n.º 6
0
 class Meta:
     model = Properties
     sqlalchemy_session = dal.Session()
     sqlalchemy_session_persistence = "commit"
Exemplo n.º 7
0
 class Meta:
     model = Software
     sqlalchemy_session = dal.Session()
     sqlalchemy_session_persistence = "commit"