コード例 #1
0
ファイル: test_mysql.py プロジェクト: alcides/rdflib

def testRun():
    testN3Store('MySQL',configString)
    testRegex()

testRun.non_core = True


def profileTests():
    from hotshot import Profile, stats
    p = Profile('rdflib-mysql.profile')
    p.runcall(testRun)
    p.close()

    s = stats.load('rdflib-mysql.profile')
    s.strip_dirs()
    s.sort_stats('time','cumulative','pcalls')
    #s.sort_stats('time','pcalls')
    s.print_stats(.1)
    s.print_callers(.1)
    s.print_callees(.1)

profileTests.non_standard_dep = True

if __name__=='__main__':
    testN3Store('MySQL',configString)
    testRegex()
    #profileTests()

コード例 #2
0
ファイル: test_mysql.py プロジェクト: alcides/rdflib
def testRun():
    testN3Store('MySQL',configString)
    testRegex()
コード例 #3
0
 def test_PostgreSQL_testN3_store(self):
     testN3Store('PostgreSQL',configString)