diff --git a/docs/plugins/development/data-backends.md b/docs/plugins/development/data-backends.md index a7a67b9fb..feffa5bed 100644 --- a/docs/plugins/development/data-backends.md +++ b/docs/plugins/development/data-backends.md @@ -2,8 +2,7 @@ [Data sources](../../models/core/datasource.md) can be defined to reference data which exists on systems of record outside NetBox, such as a git repository or Amazon S3 bucket. Plugins can register their own backend classes to introduce support for additional resource types. This is done by subclassing NetBox's `DataBackend` class. -```python -# data_backends.py +```python title="data_backends.py" from netbox.data_backends import DataBackend class MyDataBackend(DataBackend): @@ -14,7 +13,7 @@ class MyDataBackend(DataBackend): To register one or more data backends with NetBox, define a list named `backends` at the end of this file: -```python +```python title="data_backends.py" backends = [MyDataBackend] ``` diff --git a/netbox/core/tests/test_views.py b/netbox/core/tests/test_views.py index 3e13ebfe1..16d07f376 100644 --- a/netbox/core/tests/test_views.py +++ b/netbox/core/tests/test_views.py @@ -28,10 +28,10 @@ class DataSourceTestCase(ViewTestCases.PrimaryObjectViewTestCase): } cls.csv_data = ( - f"name,type,source_url,enabled", - f"Data Source 4,{'local'},file:///var/tmp/source4/,true", - f"Data Source 5,{'local'},file:///var/tmp/source4/,true", - f"Data Source 6,git,http:///exmaple/com/foo/bar/,false", + "name,type,source_url,enabled", + "Data Source 4,local,file:///var/tmp/source4/,true", + "Data Source 5,local,file:///var/tmp/source4/,true", + "Data Source 6,git,http:///exmaple/com/foo/bar/,false", ) cls.csv_update_data = (