Skip to content

Instantly share code, notes, and snippets.

@brno32
brno32 / pyproject.toml
Created October 1, 2022 15:19
clean `pyproject.toml`
[tool.poetry]
name = "poetry-certs-not-working"
version = "0.1.0"
description = ""
authors = ["Alex Drozd <dont@email.me>"]
readme = "README.md"
packages = [{include = "poetry_demo"}]
[tool.poetry.dependencies]
python = "^3.9"
@brno32
brno32 / pyproject.toml
Created July 10, 2022 20:58
Example of broken poetry toml
[tool.poetry]
name = "example"
version = "0.0.1"
description = "Example example example."
license = "MIT"
readme = "README.md"
authors = ["Alex Drozd <alex@kicksaw.com>"]
packages = [
{ include = "src" }
]
import os
from simple_mockforce import mock_salesforce
from simple_salesforce import Salesforce
@mock_salesforce
def test_api():
salesforce = Salesforce(
username=os.getenv["SFDC_USERNAME"],
password=os.getenv["SFDC_PASSWORD"],
@brno32
brno32 / example.py
Created June 8, 2021 15:24 — forked from aburk3/example.py
Mocking salesforce example
import os
from simple_mockforce import mock_salesforce
from simple_salesforce import Salesforce
@mock_salesforce
def test_api():
salesforce = Salesforce(
username=os.getenv["SFDC_USERNAME"],
password=os.getenv["SFDC_PASSWORD"],
security_token=os.getenv["SFDC_SECURITY_TOKEN"]