Skip to content

Commit 8fdc04b

Browse files
added __main__ to the package and contest to tests
1 parent 5dff5d7 commit 8fdc04b

5 files changed

Lines changed: 14 additions & 13 deletions

File tree

PyMemoryEditor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
__author__ = "Jean Loui Bernard Silva de Jesus"
11-
__version__ = "1.5.21"
11+
__version__ = "1.5.22"
1212

1313
from .enums import ScanTypesEnum
1414
from .process.errors import ClosedProcess, ProcessIDNotExistsError, ProcessNotFoundError

PyMemoryEditor/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from PyMemoryEditor.sample.application import main
2+
3+
if __name__ == "__main__":
4+
main()

tests/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# -*- coding: utf-8 -*-
2+
3+
import os
4+
import sys
5+
6+
current_dir = os.getcwd()
7+
sys.path.append(current_dir)

tests/package.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/test_editor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
from package import OpenProcess, ScanTypesEnum, version
1+
from PyMemoryEditor import OpenProcess, ScanTypesEnum, __version__
22
from os import getpid
33
from typing import Optional
44
import ctypes
55
import platform
66
import random
77

8-
print("Testing PyMemoryEditor version %s." % version)
8+
print("Testing PyMemoryEditor version %s." % __version__)
99

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

0 commit comments

Comments
 (0)