{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":344242817,"defaultBranch":"master","name":"cloud-init","ownerLogin":"JazzEd-EdTech","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2021-03-03T19:35:58.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/73998768?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1642988700.023803","currentOid":""},"activityList":{"items":[{"before":"f60149d9015991672d6cd505a893431e1e579fbd","after":"dc0eafbc7d88be99e11301081adb41ad7b50338e","ref":"refs/heads/master","pushedAt":"2024-03-20T22:27:26.000Z","pushType":"push","commitsCount":1048,"pusher":{"login":"violethaze74","name":"violethaze74","path":"/violethaze74","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/65783327?s=80&v=4"},"commit":{"message":"test: fix `disable_sysfs_net` mock (#5065)\n\nThe fixture parametrization ability added in 9baf31c doesn't work\nas expected. When you have a session-wide fixture, the setup is run\nonce, then further invocations of the fixture (including autouse) uses a\ncached version of the fixture. Teardown for the session fixture happens\nat the end of all test runs. This also applies to mock patching. Since\nthe mock patching happens only once, parametrizing the fixture to yield\nwithout patching doesn't undo the initial mock setup; the\nparametrization of `disable_sys_net` effectively does nothing.\n\nThe good news is that patches stack, so current tests that patch\n`get_sys_class_path` differently will still work fine. If we need to\ndisable the patching entirely, that is also possible by saving the\noriginal `get_sys_class_path` before applying the global disable mock,\nthen having a separate mock that has a side effect of calling\nthe original function.","shortMessageHtmlLink":"test: fix disable_sysfs_net mock (canonical#5065)"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEGymPqAA","startCursor":null,"endCursor":null}},"title":"Activity ยท JazzEd-EdTech/cloud-init"}