[V3 Config] Driver code initial cleanup (#1315)

* Remove get_driver

* Rename self.driver to self._driver

* Do not unnecessarily pass the cog identifier

* Remove unused import

* Fix type annotation

* Missed a keyword rename

* Modify signature of get/set methods in drivers
This commit is contained in:
Will
2018-02-18 22:30:32 -05:00
committed by palmtree5
parent 3984cb8f48
commit f9d846a704
5 changed files with 51 additions and 55 deletions

View File

@@ -49,7 +49,7 @@ def config(json_driver):
conf = Config(
cog_name="PyTest",
unique_identifier=str(uuid.uuid4()),
driver_spawn=json_driver)
driver=json_driver)
yield conf
conf._defaults = {}
@@ -63,7 +63,7 @@ def config_fr(json_driver):
conf = Config(
cog_name="PyTest",
unique_identifier=str(uuid.uuid4()),
driver_spawn=json_driver,
driver=json_driver,
force_registration=True
)
yield conf