cubicweb #2920299 Rework Test API [resolved]
If we rework the session API we need to rework the way we access the repo in the test. The way it is done now is an issue in itself anyway. Issue with the current APIThe currently the test heavily rely on the fact that in the DBAPI, all request are actually using the very same database transaction self.request().execute('Insert Elephant B, B name "Babar"') self.execute('SET B king EK WHERE EK name "Babar"') req = self.request() req.execute('Insert Elephant C, C name "Celestine", C spouse B WHERE B name "Babar"') self.commit() # tadam ! To be detailled Proposed solutionThe proposed solution is based on the reworked database access API detailled here #2503918. method on directly accessing on the TestCase will be dropped. We get three method that get database accessors
To be detailled | |
priority | normal |
---|---|
type | enhancement |
done in | 3.19.0 |
load | 3.000 |
load left | 0.000 |
closed by | <not specified> |
patch | [testlib] introduce a RepoAccess class to easily create connection and request [applied] |
dependency of