示例#1
0
 def makeRegistry(self) -> Registry:
     _, filename = tempfile.mkstemp(dir=self.root, suffix=".sqlite3")
     config = self.makeRegistryConfig()
     config["db"] = f"sqlite:///{filename}"
     return Registry.createFromConfig(config, butlerRoot=self.root)
示例#2
0
 def makeRegistry(self) -> Registry:
     config = self.makeRegistryConfig()
     config["db"] = "sqlite://"
     return Registry.createFromConfig(config)
示例#3
0
 def makeRegistry(self) -> Registry:
     namespace = f"namespace_{secrets.token_hex(8).lower()}"
     config = self.makeRegistryConfig()
     config["db"] = self.server.url()
     config["namespace"] = namespace
     return Registry.createFromConfig(config)