pytest-factoryboy icon indicating copy to clipboard operation
pytest-factoryboy copied to clipboard

AttributeError: 'FixtureFunctionDefinition' object has no attribute '__pytest_wrapped__'

Open Sreesanth46 opened this issue 5 months ago • 2 comments

Recently updated my dependencies and now Im getting this error (AttributeError: 'FixtureFunctionDefinition' object has no attribute '__pytest_wrapped__') when running tests.

These are my dependencies

    dev = [
      "black[d]",
      "coverage[toml] (>=7,<8)",
      "faker",
      "pre-commit (>=3,<4)",
      "pytest (>=8.3.5,<9.0.0)",
      "pytest-bdd (>=7,<8)",
      "pytest-django",
      "pytest-factoryboy (>=2,<3)",
      "pytest-mock (>=3,<4)",
      "boto3-stubs[s3,sts,quicksight,rds,ssm,secretsmanager,route53,ecs,ecr]",
      "moto[s3,quicksight,sts]",
      "requests-mock (>=1,<2)",
      "types-requests",
      "types-python-dateutil",
      "types-factory-boy",
      "pytest-cov (>=5,<6)",
      "flaky (>=3,<4)",
      "isort (>=6,<7)",
      "werkzeug (>=3,<4)",
      "factory-boy (>=3,<4)",
      "findpydeps (>=0.2,<0.3)",
      "openapi-spec-validator (>=0,<1)",
      "pandas-stubs",
      "jsonschema[format]",
      "pytest-httpx",
      "django-browser-reload (>=1,<2)",
      "django-coverage-plugin (>=3,<4)",
      "beautifulsoup4 (>=4,<5)",
      "django-stubs",
      "click (>=8,<9)",
      "debugpy (>=1,<2)",
      "lxml-stubs",
      "djangorestframework-stubs",
      "ipython",
      "snakeviz",
      "ipdb",
      "pytest-random-order (>=1.1,<1.2)",
    ]

Sreesanth46 avatar Jun 04 '25 19:06 Sreesanth46