# ./template.yaml
AWSTemplateFormatVersion: 2010-09-09
Parameters:
BucketName:
Type: String
Resources:
Bucket:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user nginx; | |
worker_processes auto; | |
error_log /var/log/nginx/error.log warn; | |
pid /var/run/nginx.pid; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; |
See microsoft/vscode-remote-release#2133 (comment)
Assuming the script is named make_devcontainer_folder_uri.py
, is executable, and is in your $PATH
:
# Open . in dev container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import logging | |
import threading | |
import time | |
import pytest | |
def test_1(my_thread_async_fixture): | |
logging.warning("Test started") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from itertools import cycle | |
from unittest import mock | |
def test_cycle_through_responses(monkeypatch): | |
return_data = ["h", "hello"] | |
test_mock = mock.Mock(side_effect=cycle(return_data)) | |
m = sys.modules[__name__] |