Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write a module and test it #869

Open
fdsgdshn opened this issue Apr 2, 2024 · 0 comments
Open

How to write a module and test it #869

fdsgdshn opened this issue Apr 2, 2024 · 0 comments

Comments

@fdsgdshn
Copy link

fdsgdshn commented Apr 2, 2024

Hi,

I'm looking to create a module in Transcrypt and also write an auto-test module for it. What steps should I take to accomplish this? I've created a file named enum_new under transcrypt/modules/enum_new, and I've defined a class named MyEnum within it. However, when I try to test it under transcrypt/development/automated_tests/transcrypt/module_enum/ , even after importing the class, it seems to be inaccessible. Could you provide some guidance on this matter?

The error message is as follows:

from enum_new import *
ModuleNotFoundError: No module named 'enum_new'
Aborted

But python couldn't find this new module named enum_new.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant