@@ -772,12 +772,18 @@ test("python codegen generates both bundled msra documents without failing", ()
772772 ) ;
773773 const normalizedSourceSyncWorkflowText = normalizeNewlines ( sourceSyncWorkflowText ) ;
774774 const normalizedPublishWorkflowText = normalizeNewlines ( publishWorkflowText ) ;
775+ const gitignoreText = readFileSync ( path . join ( testCase . outputDir , ".gitignore" ) , "utf8" ) ;
775776 assert . match ( makefileText , / p i p i n s t a l l - r r e q u i r e m e n t s - d e v \. t x t / ) ;
776777 assert . match ( makefileText , new RegExp ( `pytest --cov=${ testCase . packageName } ` ) ) ;
777778 assert . match ( makefileText , new RegExp ( `python -m ruff check ${ testCase . packageName } tests example\\.py docs/source/conf\\.py` ) ) ;
778779 assert . match ( makefileText , new RegExp ( `python -m ruff check --select I --fix ${ testCase . packageName } tests example\\.py docs/source/conf\\.py` ) ) ;
779780 assert . match ( makefileText , new RegExp ( `python -m ruff format ${ testCase . packageName } tests example\\.py docs/source/conf\\.py` ) ) ;
780781 assert . match ( makefileText , new RegExp ( `python -m mypy ${ testCase . packageName } ` ) ) ;
782+ assert . match ( gitignoreText , / ^ # P y t h o n b y t e c o d e $ / m) ;
783+ assert . match ( gitignoreText , / ^ _ _ p y c a c h e _ _ \/ $ / m) ;
784+ assert . match ( gitignoreText , / ^ \. p y t e s t _ c a c h e \/ $ / m) ;
785+ assert . match ( gitignoreText , / ^ m e r g e d \. m s r a $ / m) ;
786+ assert . match ( gitignoreText , / ^ d o c s \/ _ b u i l d \/ $ / m) ;
781787 assert . match ( normalizedSourceSyncWorkflowText , / n a m e : s o u r c e - s y n c / ) ;
782788 assert . match ( normalizedSourceSyncWorkflowText , / w o r k f l o w _ d i s p a t c h : / ) ;
783789 assert . match ( normalizedSourceSyncWorkflowText , / u s e s : a c t i o n s \/ c h e c k o u t @ v 4 / ) ;
0 commit comments