Skip to content

Commit cade359

Browse files
committed
Fixing python project
1 parent 562cbab commit cade359

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

.project

+6
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
<projects>
66
</projects>
77
<buildSpec>
8+
<buildCommand>
9+
<name>org.python.pydev.PyDevBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
813
</buildSpec>
914
<natures>
15+
<nature>org.python.pydev.pythonNature</nature>
1016
</natures>
1117
</projectDescription>

.pydevproject

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<?eclipse-pydev version="1.0"?><pydev_project>
3+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_INTERPRETER">Default</pydev_property>
4+
<pydev_property name="org.python.pydev.PYTHON_PROJECT_VERSION">python interpreter</pydev_property>
5+
<pydev_pathproperty name="org.python.pydev.PROJECT_SOURCE_PATH">
6+
<path>/${PROJECT_DIR_NAME}/src/main/python</path>
7+
<path>/${PROJECT_DIR_NAME}/src/test/python</path>
8+
</pydev_pathproperty>
9+
</pydev_project>

src/main/python/helloworld.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
def getHelloWorld():
3+
return "Hello World!"
4+
5+
6+
def main():
7+
print(getHelloWorld())
8+
9+
if __name__ == "__main__":
10+
main()

src/test/python/test_helloworld.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import unittest
2+
import helloworld
3+
4+
class TestHelloWorld(unittest.TestCase):
5+
6+
def setUp(self):
7+
pass
8+
9+
def tearDown(self):
10+
pass
11+
12+
13+
def testStr(self):
14+
self.assertEquals(helloworld.getHelloWorld(), "Hello World!")

0 commit comments

Comments
 (0)