Publish Zonghengjia Windows 0.4.0 client source

This commit is contained in:
2026-11-29 23:48:07 +08:00
parent 308d71021e
commit 7a00f97910
37 changed files with 1722 additions and 511 deletions
@@ -155,7 +155,15 @@ class EmployeeBillingTests(TestCase):
# still must not accept this row as proof that money was received.
sub.save()
self.assertFalse(sub.is_usable)
node = Node.objects.create(name="fixture", slug="node-fixture", server="example.invalid", port=11082)
node = Node.objects.create(
name="fixture",
slug="node-fixture",
server="example.invalid",
port=11082,
status=Node.Status.ONLINE,
active=True,
subscription_enabled=True,
)
self.assertNotIn(sub, desired_subscriptions_for_node(node))
employee_sub = Subscription.objects.create(user=self.employee, plan=self.plan, status="active", provisioning_state="active")
self.assertTrue(employee_sub.is_usable)