MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / setUp

Method setUp

apps/output/tests.py:95–105  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

93
94class OutputM3UTest(OutputEndpointTestMixin, TestCase):
95 def setUp(self):
96 super().setUp()
97 self.client = Client()
98 self.group = ChannelGroup.objects.create(name=f"M3U Group {uuid4().hex[:8]}")
99 self.profile = self._create_isolated_profile("m3u")
100 self._add_channel_to_profile(
101 self.profile,
102 self.group,
103 channel_number=1.0,
104 name="Test M3U Channel",
105 )
106
107 def _m3u_url(self):
108 return reverse("output:m3u_endpoint", kwargs={"profile_name": self.profile.name})

Callers 2

setUpMethod · 0.45
setUpMethod · 0.45

Calls 4

ClientClass · 0.85
createMethod · 0.45

Tested by

no test coverage detected