Skip to content

Conversation

@Omripresent
Copy link
Contributor

Fixes: #19687

Add cellular interface types to WIRELESS_IFACE_TYPES const
Add cable termination test for cellular interface

Add cable termination test for cellular interface
@jnovinger jnovinger self-requested a review June 11, 2025 17:45
jnovinger
jnovinger previously approved these changes Jun 11, 2025
with self.assertRaises(ValidationError):
cable.clean()

def test_cable_cannot_terminate_to_a_cellular_interface(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the regression test!

with self.assertRaises(ValidationError):
cable.clean()

def test_cable_cannot_terminate_to_a_cellular_interface(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Derp, meant to also ask ... can you add a 'regression' tag here, like so?

@tag('regression')
def test_cable_cannot_terminate_to_a_cellular_interface(self):
    ...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can import it like

from django.test import tag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad I misunderstood the comment on the issue. I'll add and update the PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It couldn't have helped that it took me three comments to say what I meant to say. 🤦

Thanks!

@jnovinger jnovinger merged commit afeddee into netbox-community:main Jun 12, 2025
3 checks passed
@Omripresent Omripresent deleted the fix-19687 branch June 12, 2025 22:53
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Treat cellular interface type as not connectable

2 participants