
leonW
Python Testing with pytest: "using multiple fixture levels"
The way I have this formatted it is page 80. But when discussing the content of ch3/b/conftest.py you say:
“the cards_db fixture has cards_db named in its parameter list, which means it depends on the other fixture. ”
I believe what you meant to say is:
“The cards_db fixture has db named in its parameter list which means it depends on the other fixture”.
I am enjoying the book a great deal. I like that it is done via the command line which eliminates a lot of futzing with IDEs (although I do like them as well, just not when learning about pytest)
Marked As Solved

brianokken
You are correct. Thank you.
A couple sentences wrong in there. The proper text should be:
The cards_db
fixture has db
named in its parameter list, which means it depends on the db
fixture. Also, cards_db
is function scoped, which is a more narrow scope than db
.
Popular Prag Prog topics










Other popular topics









Latest in PragProg
Latest (all)
Categories:
Popular Portals
- /elixir
- /opensuse
- /rust
- /kotlin
- /ruby
- /erlang
- /python
- /clojure
- /react
- /quarkus
- /go
- /vapor
- /react-native
- /v
- /wasm
- /django
- /security
- /nodejs
- /centos
- /rails
- /haskell
- /fable
- /gleam
- /js
- /swift
- /deno
- /tailwind
- /assemblyscript
- /laravel
- /symfony
- /phoenix
- /crystal
- /typescript
- /debian
- /adonisjs
- /julia
- /arch-linux
- /svelte
- /spring
- /c-plus-plus
- /preact
- /flutter
- /actix
- /java
- /angular
- /ocaml
- /zig
- /kubuntu
- /scala
- /zotonic
- /vim
- /rocky
- /lisp
- /html
- /keyboards
- /nim
- /vuejs
- /emacs
- /elm
- /nerves