Senaite.api portal has NoneType

I’ve pip installed senaite and am going through the senaite api tutorial but my portal type keeps returning a none value. Attached is an image of my codesenaite code

I’ve added senaite.api to buildout.cfg. I did not run bin/test test_doctests -t API because after running bin/buildout it did not generate any directory named test. Any help is appreciated. Thanks!