Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
af17b58
docs: Add singleton tables documentation
dimitri-yatsenko Jan 22, 2026
f832270
docs: Mark singleton tables as New in v2.1
dimitri-yatsenko Jan 22, 2026
6e5f8a6
fix: Make notebooks backend-agnostic (MySQL/PostgreSQL compatible)
dimitri-yatsenko Jan 22, 2026
6abdc0c
docs: Add environment variable configuration to all notebooks
dimitri-yatsenko Jan 23, 2026
742a7a2
docs: Separate config from notebooks, add PostgreSQL compatibility
dimitri-yatsenko Jan 23, 2026
784df1f
docs: Simplify JSON tutorial, add test outputs
dimitri-yatsenko Jan 23, 2026
074281a
docs: Update PostgreSQL test output (21/21 passed)
dimitri-yatsenko Jan 23, 2026
4c01f17
docs: Re-execute notebooks with TLS disabled, add execution script
dimitri-yatsenko Jan 23, 2026
0a58d44
fix: PostgreSQL boolean aggregation in queries tutorial
dimitri-yatsenko Jan 23, 2026
7bce685
fix: PostgreSQL string quoting in sql-comparison tutorial
dimitri-yatsenko Jan 23, 2026
1a0174b
docs: Use decimal type for human-entered numeric fields
dimitri-yatsenko Jan 23, 2026
e3376bd
docs: Use decimal for reaction_time, fix decimal-to-float conversions
dimitri-yatsenko Jan 23, 2026
e166326
Merge pre/v2.1 into docs/singleton-tables
dimitri-yatsenko Jan 23, 2026
0934958
docs: Re-execute all notebooks after merge
dimitri-yatsenko Jan 23, 2026
a9dc9d0
docs: add testing guide and replace Russian with Ukrainian
dimitri-yatsenko Jan 23, 2026
3119156
docs: add testing guide to how-to index
dimitri-yatsenko Jan 23, 2026
c427c8e
docs: use single quotes for strings in SQL restrictions
dimitri-yatsenko Jan 23, 2026
217cae5
Merge branch 'main' into docs/singleton-tables
MilagrosMarin Jan 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""
Pytest configuration for notebook tests.

Configures DataJoint from environment variables before any tests run.
This separates configuration from workflow execution.

Usage:
# MySQL (default)
DJ_HOST=localhost DJ_USER=root DJ_PASS=tutorial pytest --nbmake ...

# PostgreSQL
DJ_HOST=localhost DJ_PORT=5432 DJ_USER=datajoint DJ_PASS=tutorial DJ_BACKEND=postgresql pytest --nbmake ...
"""

import os


def pytest_configure(config):
"""Configure DataJoint from environment variables before tests run."""
import datajoint as dj

# Database connection settings
if os.getenv('DJ_HOST'):
dj.config['database.host'] = os.getenv('DJ_HOST')
if os.getenv('DJ_PORT'):
dj.config['database.port'] = int(os.getenv('DJ_PORT'))
if os.getenv('DJ_USER'):
dj.config['database.user'] = os.getenv('DJ_USER')
if os.getenv('DJ_PASS'):
dj.config['database.password'] = os.getenv('DJ_PASS')
if os.getenv('DJ_BACKEND'):
dj.config['database.backend'] = os.getenv('DJ_BACKEND')

# Display settings for notebooks
dj.config['display.limit'] = 8
566 changes: 283 additions & 283 deletions src/how-to/model-relationships.ipynb

Large diffs are not rendered by default.

Loading