Skip to content

rjwills28/demo_strawberry_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

demo_strawberry_server

The is a small demo Strawberry server that can be used to demonstrate whether the 'finally' statement in a try-finally is executed if included in the subscription method.

The code will print out a debug message when the finally statement is called for each subscription and keep a toal of the number of finally calls versus the number of subscriptions created. if all is functioning correctly we would expect these values to be the same.

Prerequisites

  • Python > 3.7

Installation

  • Clone this repo.

  • Create a Python virtual environment to install dependencies and run code.

    python -m venv venv

    source venv/bin/activate

  • Install dependencies from setup file:

    python setup.py install

  • Start the server:

    demo_strawberry_server

About

Demo to show whether the finally statement is called

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages