diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1d7901e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/__pycache__ \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d0e8d21..0e51c3e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM python:3 WORKDIR /usr/src/app COPY Pipfile ./ -RUN pip install --no-cache-dir pipenv==2020.11.15 && pipenv install +RUN pip install --no-cache-dir pipenv==2025.0.4 && pipenv install COPY app.py . COPY tests.py . -CMD [ "pipenv", "run", "python", "-m", "flask", "run", "--host=0.0.0.0" ] \ No newline at end of file +CMD [ "pipenv", "run", "python", "-m", "flask", "run", "--host=0.0.0.0" ] diff --git a/app.py b/app.py index 1f4519e..f18b6aa 100644 --- a/app.py +++ b/app.py @@ -3,4 +3,14 @@ @app.route('/') def hello_world(): - return 'Hello, World!' \ No newline at end of file + return """Hello, I am Anastasiia Yermolik!
+ Yes, I'm an experienced Magento developer, + but now I'm looking for new oppoptunities and discovering another directions.
+ This sample project demonstrates my knowledge of CI/CD technology and Python fundamentals.
+ Also I learn Java and gained OCA certification
+ Also I am a beginner Blockchain developer
+ And also continue learning AI-driven development
+ Please follow my + + LinkedIn profile + for more info""" diff --git a/tests.py b/tests.py index 43d61b6..011b62a 100644 --- a/tests.py +++ b/tests.py @@ -1,11 +1,27 @@ import unittest import app + class TestHelloWorld(unittest.TestCase): def test_hello_world(self): import app - self.assertEqual(app.hello_world(), "Hello, World!") -if __name__ == '__main__': - unittest.main() \ No newline at end of file + self.assertEqual( + app.hello_world(), + """Hello, I am Anastasiia Yermolik!
+ Yes, I'm an experienced Magento developer, + but now I'm looking for new oppoptunities and discovering another directions.
+ This sample project demonstrates my knowledge of CI/CD technology and Python fundamentals.
+ Also I learn Java and gained OCA certification
+ Also I am a beginner Blockchain developer
+ And also continue learning AI-driven development
+ Please follow my + + LinkedIn profile + for more info""", + ) + + +if __name__ == "__main__": + unittest.main()