Skip to content

Commit 02b2af6

Browse files
committed
Fix formating and missed merge conflicts
1 parent f98eaf9 commit 02b2af6

File tree

7 files changed

+5
-26
lines changed

7 files changed

+5
-26
lines changed

examples/03-remote-system/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Main executable for DiffSync "example3"."""
3+
34
import sys
45
import argparse
56

examples/06-ip-prefixes/adapter_ipam_a.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def create(cls, adapter, ids, attrs):
2020
"cidr": ids["prefix"],
2121
"family": ipaddress.ip_address(ids["prefix"].split("/")[0]).version,
2222
"vrf": attrs["vrf"],
23-
"vlan": f'VLAN{attrs["vlan_id"]}',
23+
"vlan": f"VLAN{attrs['vlan_id']}",
2424
"customer_id": attrs["tenant"] if attrs["tenant"] else None,
2525
}
2626
)
@@ -34,7 +34,7 @@ def update(self, attrs):
3434
if "vrf" in attrs:
3535
elem["vrf"] = attrs["vrf"]
3636
if "vlan_id" in attrs:
37-
elem["vlan_id"] = f'VLAN{attrs["vlan_id"]}'
37+
elem["vlan_id"] = f"VLAN{attrs['vlan_id']}"
3838
if "tenant" in attrs:
3939
elem["customer_id"] = attrs["tenant"]
4040
break

examples/06-ip-prefixes/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Main example."""
3+
34
from adapter_ipam_a import IpamA
45
from adapter_ipam_b import IpamB
56

tasks.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,7 @@ def lock(context, check=False):
148148
@task
149149
def clean(context):
150150
"""Remove the project specific image."""
151-
print(
152-
f"Attempting to forcefully remove image {context.diffsync.image_name}:{context.diffsync.image_ver}"
153-
)
151+
print(f"Attempting to forcefully remove image {context.diffsync.image_name}:{context.diffsync.image_ver}")
154152
context.run(f"docker rmi {context.diffsync.image_name}:{context.diffsync.image_ver} --force")
155153
print(f"Successfully removed image {context.diffsync.image_name}:{context.diffsync.image_ver}")
156154

tests/integration/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
"""Integration tests for DiffSync.
32
43
Copyright (c) 2020 Network To Code, LLC <[email protected]>
@@ -15,6 +14,3 @@
1514
See the License for the specific language governing permissions and
1615
limitations under the License.
1716
"""
18-
=======
19-
"""Integration tests package."""
20-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)

tests/unit/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
"""Unit tests for DiffSync.
32
43
Copyright (c) 2020 Network To Code, LLC <[email protected]>
@@ -15,6 +14,3 @@
1514
See the License for the specific language governing permissions and
1615
limitations under the License.
1716
"""
18-
=======
19-
"""Unit tests package."""
20-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)

tests/unit/conftest.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<<<<<<< HEAD
21
"""Used to setup fixtures to be used through tests.
32
43
Copyright (c) 2020 Network To Code, LLC <[email protected]>
@@ -487,15 +486,3 @@ def diff_element_with_children():
487486
parent_element.add_child(child_element_4)
488487

489488
return parent_element
490-
=======
491-
"""Used to setup fixtures to be used through tests"""
492-
493-
import pytest
494-
from click.testing import CliRunner
495-
496-
497-
@pytest.fixture
498-
def cli_runner():
499-
"""Provide CLI runner for Click tests."""
500-
return CliRunner()
501-
>>>>>>> c5f3eb1 (Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool)

0 commit comments

Comments
 (0)