pytestify icon indicating copy to clipboard operation
pytestify copied to clipboard

Automatically convert unittests to pytest

Results 12 pytestify issues
Sort by recently updated
recently updated
newest added

updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v6.0.0) - [github.com/asottile/setup-cfg-fmt: v2.3.0 → v3.2.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.3.0...v3.2.0) - [github.com/PyCQA/flake8: 6.0.0 → 7.3.0](https://github.com/PyCQA/flake8/compare/6.0.0...7.3.0) - https://github.com/pre-commit/mirrors-autopep8 → https://github.com/hhatto/autopep8 - [github.com/hhatto/autopep8: v2.0.2 → v2.3.2](https://github.com/hhatto/autopep8/compare/v2.0.2...v2.3.2) - [github.com/asottile/add-trailing-comma: v2.4.0 → v4.0.0](https://github.com/asottile/add-trailing-comma/compare/v2.4.0...v4.0.0)...

Tests fail on Python 3.7... https://github.com/dannysepler/pytestify/actions/runs/7450966244 * #48 * #49

Autogenerates pull requests to keep GitHub Actions up to date. * https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot * https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem

Thank you for a tool that saves me from converting 500+ asserts manually. However, it failed on a few, one of them being: `self.assertEqual(xmap.area_is_free(b, e), used == 0)` which got...

Hello, thank you for creating this tool ! The following code: ```python import unittest try: import numpy # pylint: disable=unused-import HAS_NUMPY = True except ImportError: HAS_NUMPY = False @unittest.skipUnless(HAS_NUMPY, "This...

``` self.assertRegex(a, b) # assert a.search(b) self.assertNotRegex(a, b) # assert not a.search(b) ``` Not sure these are correct. I don't think `search()` is a method of string. It should probably...

python black does this: ```python assert some_really_really_really_long_thing == some_other_really_really_really_long_thing, "this is an error message" ... assert ( some_really_really_really_long_thing == some_other_really_really_really_long_thing ), "this is an error message" ``` instead of using...

```python self.assertEquals('👍', b) ```

```python @unittest.skipIf(some_bool, 'some reason') # @pytest.mark.skipif(some_bool, reason='some reason') @unittest.skipUnless(some_bool, 'some reason') # @pytest.mark.skipif(not some_bool, reason='some reason') # before @unittest.skipIf( some_bool, 'some reason' ) # after @pytest.mark.skipif( some_bool, reason='some reason' )...