mcpyproject / McPy

A open source Minecraft server written 100% in Python
GNU Affero General Public License v3.0
84 stars 15 forks source link

[ADD] Utils classes & Tests #29

Closed 0ddlyoko closed 3 years ago

0ddlyoko commented 3 years ago
ntoskrnl4 commented 3 years ago

There is a builtin Enum type, why do we need to add one?

Additionally, tests don't need any code in the actual program itself- they're supposed to be run in the command line straight from the tests directory. It would make maybe a bit more sense if it was in startup.py, but they're really not supposed to be in the program at all.

0ddlyoko commented 3 years ago

There is a builtin Enum type, why do we need to add one?

Additionally, tests don't need any code in the actual program itself- they're supposed to be run in the command line straight from the tests directory. It would make maybe a bit more sense if it was in startup.py, but they're really not supposed to be in the program at all.

Enum.py file has been deleted & you can launch tests via "pytest test"

0ddlyoko commented 3 years ago

If someone has a suggestion or something that could be added to this PR, free to tell me what !

0ddlyoko commented 3 years ago

Closed & Reopened, GitHub has bugged

0ddlyoko commented 3 years ago

I'll add more classes like mob effects, enchantments & entity types

0ddlyoko commented 3 years ago

Done :)