Skip to content

Commit 46d1b91

Browse files
authored
Merge pull request #16 from Azure-Samples/cruft/update
Cruft update
2 parents 4a1ab08 + 2fad7ed commit 46d1b91

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"template": "https://github.com/kjaymiller/cookiecutter-relecloud",
3-
"commit": "5361c11e1ead790f7eb0b7a15cd6e803c44c4d7e",
4-
"checkout": null,
3+
"commit": "f86115e94dda2639d5678dad3a3232bacf583af2",
4+
"checkout": "picklefix",
55
"context": {
66
"cookiecutter": {
77
"project_name": "azure",

.github/workflows/azure-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches:
77
- main
8-
- cruft/update*
8+
- cruft/update
99

1010
# GitHub Actions workflow to deploy to Azure using azd
1111
# To configure required secrets for connecting to Azure, simply run `azd pipeline config`

src/tests/local/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
import multiprocessing
12
import os
23
import pathlib
3-
from multiprocessing import Process
44

55
import ephemeral_port_reserve
66
import pytest
77
from flask import Flask
88

99
from flaskapp import create_app, db, seeder
1010

11+
# Set start method to "fork" to avoid issues with pickling on OSes that default to "spawn"
12+
multiprocessing.set_start_method("fork")
13+
1114

1215
def run_server(app: Flask, port: int):
1316
app.run(port=port, debug=False)
@@ -51,7 +54,7 @@ def live_server_url(app_with_db):
5154
# Start the process
5255
hostname = ephemeral_port_reserve.LOCALHOST
5356
free_port = ephemeral_port_reserve.reserve(hostname)
54-
proc = Process(
57+
proc = multiprocessing.Process(
5558
target=run_server,
5659
args=(
5760
app_with_db,

0 commit comments

Comments
 (0)