From b605e1240c7ed1f301858da60fc10268754a31a4 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 1 Mar 2024 23:54:17 +0100 Subject: [PATCH] tests: Add unit test to check new panda3d.net module --- tests/test_imports.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_imports.py b/tests/test_imports.py index 0fba7bff13..c6295bc7d0 100644 --- a/tests/test_imports.py +++ b/tests/test_imports.py @@ -36,6 +36,13 @@ def test_imports_panda3d(): importlib.import_module('panda3d.%s' % (module)) +def test_imports_panda3d_net(): + from panda3d import core + from panda3d import net + assert core.ConnectionWriter == net.ConnectionWriter + assert core.ConnectionWriter.__module__ == 'panda3d.net' + + def test_imports_direct(): import direct.actor.Actor import direct.actor.DistributedActor