Skip to content

Commit 091b880

Browse files
committed
refactor and fix
1 parent f918f58 commit 091b880

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

main.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1-
import mainClass
1+
class FirstTest:
2+
def __init__(self, arg1, arg2):
3+
'''Try to define vars'''
4+
self.arg1 = arg1
5+
self.arg2 = arg2
26

3-
First = mainClass.FirstTest().test
4-
Second = mainClass.SecondTest().test2
5-
print(First)
6-
print(Second)
7+
def test(self):
8+
message = (self.arg1 + " - this is arg1!")
9+
message2 = (self.arg2 + " - this is arg2")
10+
if self.arg2 != '':
11+
print("FirstTest class in runnging: " + message + " and " + message2)
12+
else:
13+
print("FirstTest class in runnging: " + message)

mainClass.py

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

run.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import main
2+
3+
First = main.FirstTest().test
4+
Second = main.SecondTest().test2
5+
print(First)
6+
print(Second)

0 commit comments

Comments
 (0)