Skip to content

Commit

Permalink
added __main__ to the package and contest to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanExtreme002 committed May 29, 2024
1 parent 5dff5d7 commit 8fdc04b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion PyMemoryEditor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""

__author__ = "Jean Loui Bernard Silva de Jesus"
__version__ = "1.5.21"
__version__ = "1.5.22"

from .enums import ScanTypesEnum
from .process.errors import ClosedProcess, ProcessIDNotExistsError, ProcessNotFoundError
Expand Down
4 changes: 4 additions & 0 deletions PyMemoryEditor/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from PyMemoryEditor.sample.application import main

if __name__ == "__main__":
main()
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# -*- coding: utf-8 -*-

import os
import sys

current_dir = os.getcwd()
sys.path.append(current_dir)
10 changes: 0 additions & 10 deletions tests/package.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/test_editor.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from package import OpenProcess, ScanTypesEnum, version
from PyMemoryEditor import OpenProcess, ScanTypesEnum, __version__
from os import getpid
from typing import Optional
import ctypes
import platform
import random

print("Testing PyMemoryEditor version %s." % version)
print("Testing PyMemoryEditor version %s." % __version__)

print("\nOS Information: {} - {} {}".format(platform.platform(), *platform.architecture()[::-1]))
print("Processor Information: {} | {}\n".format(platform.machine(), platform.processor()))
Expand Down

0 comments on commit 8fdc04b

Please sign in to comment.