- self.db = Mock(DbMemory())
- self.fs = asynctest.Mock(FsLocal())
- self.fs.path = "/app/storage"
+ Database.instance = None
+ self.db = Mock(Database({
+ "database": {
+ "driver": "memory"
+ }
+ }).instance.db)
+ Database().instance.db = self.db
+
+ Filesystem.instance = None
+ self.fs = asynctest.Mock(Filesystem({
+ "storage": {
+ "driver": "local",
+ "path": "/"
+ }
+ }).instance.fs)
+
+ Filesystem.instance.fs = self.fs
+ self.fs.path = "/"
+