From 2b54a1c90cb3a5baddd0e9a2621a76fc3e2024da Mon Sep 17 00:00:00 2001 From: orchestrator-bot Date: Sun, 16 Aug 2026 18:41:43 +0000 Subject: [PATCH] agent: Write a simple python hello world Iteration 3 --- .gitignore | 3 + __pycache__/test_hello.cpython-313.pyc | Bin 1655 -> 0 bytes test_hello.py | 30 -------- tests/test_hello.py | 91 +++++++++---------------- 4 files changed, 36 insertions(+), 88 deletions(-) delete mode 100644 __pycache__/test_hello.cpython-313.pyc delete mode 100644 test_hello.py diff --git a/.gitignore b/.gitignore index bea00c4..32560a1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,9 @@ __pycache__/ *.pyc +# Pytest +.pytest_cache/ + # Distribution / packaging dist/ build/ diff --git a/__pycache__/test_hello.cpython-313.pyc b/__pycache__/test_hello.cpython-313.pyc deleted file mode 100644 index c8ca9652dc4c3679b72ce54378137b11cd91d984..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1655 zcmd5+&2Jk;6rcU{+O-qAN+TzsVUwz=+@{W<7y&{^6(9jsOXW>Or9@h7?5*Q=v+KT@ zrPNX-R0$|2Dj=drNWh8azagSktSOw@OK$;}OHX}o?XA#_^UTqvnWL{Nbt?@p znrj%F1{kZRW4v{aF>gQKs?^5@`+Ma)s|{6~wUm}pF&~hArlLswtS8nRdySQ$(zkK3 z$yOQR0@YDKbJS@DI-vr?(ZOsP6;o!Hd@erlgCKffqDLe3r!a(@aQ1Jb*kmgx2cxd0 ztI>@4Dvr9SI+~-cq?KYT6f_yNVdNK8!_nW=LuHxO_oddOd0DCFM_RgajM@-`&CqW= z-5<@4iJrxgo~}lItxU!0zDD`mV%-z=I#r?Cxng&q9SUwANy@Tde-c5^oI7HR$mXIM z#iA-RohxEJ3Qs(;Qm3UYO^!9Zj)=i`(WVm%sSE!zA+^TkCJ@+e;i-UUDp{H1@mdF> zhR?awAP#}bEiKnQ-wu4&m1f5SKNNDG$GH#U{Y$YI$Q<~1OW25-zO)7hABNH#VB1oq z&i&xLG{NU_AUNG@+p@fPIf9G4<2C$6fhoHwa9J9uDe##mq^Lf3n8A2_8O7)9ere{1 z*>7iig~^+_-}8rhGq3ha2mUNhe1Gn{v7O@K?c(9Tv&R11b#ph*vV|S1yls_lPVP({ z-JUvn>*Q^#+OzWC6uvIph<^F>x2wNiy<^q-82BY5{0UF~za(s#l}z_I)$KVlMa>u= z*bWo=_yG2R9#x?K1z8kJKut&Dm(Bn+03bdmTmWJ)lt^HIV96_E2$)1=__Q!Z2NQc9 zDvVqt1DeU%7e3^Za|+2%qWG_G`SZaa58hJmSjXTMjIu=u5PL&!gV>vM-3?4WVRGJe ziM+#;abh@d5wt@e(YP>;?qH*k2V4a2iFU*Fgn;&1jESMaJQ>g>NxDD{CK1$MI5mhb z**|L5c>Ui=%UBo~k`1BR@Y 0) + result = run_hello() + assert len(result.stdout) > 0 -class TestHelloFileExists(unittest.TestCase): +class TestHelloFile: """Tests for hello.py file existence and content.""" - def setUp(self): - """Set up test fixtures.""" - self.hello_script = Path(__file__).parent.parent / "hello.py" - def test_hello_file_exists(self): """Test that hello.py file exists.""" - self.assertTrue(self.hello_script.exists()) + assert HELLO_SCRIPT.exists() def test_hello_file_is_python(self): """Test that hello.py has .py extension.""" - self.assertEqual(self.hello_script.suffix, ".py") + assert HELLO_SCRIPT.suffix == ".py" def test_hello_file_contains_print(self): """Test that hello.py contains a print statement.""" - content = self.hello_script.read_text() - self.assertIn("print", content) + content = HELLO_SCRIPT.read_text() + assert "print" in content def test_hello_file_contains_hello_world(self): """Test that hello.py contains 'Hello, World!' string.""" - content = self.hello_script.read_text() - self.assertIn("Hello, World!", content) - - -if __name__ == "__main__": - unittest.main() + content = HELLO_SCRIPT.read_text() + assert "Hello, World!" in content