name: Run tests on a pr
on:
- # run on pull request to master excluding changes that are only on doc or example folders
+ # run on pull request to main excluding changes that are only on doc or example folders
pull_request:
branches:
- - master
+ - main
paths-ignore:
- "examples/**"
- name: Run tests
run: tox -e pep8
- # Arm emulation is quite slow (~20min) so for now just run it when merging to master
+ # Arm emulation is quite slow (~20min) so for now just run it when merging to main
# run-test-arm64:
# name: ${{ matrix.python-version }}-${{ matrix.build-type }}-arm64-ubuntu-latest
# runs-on: ubuntu-latest
name: Run tests
on:
- # run on push in master or rel_* branches excluding changes are only on doc or example folders
+ # run on push in main or rel_* branches excluding changes are only on doc or example folders
push:
branches:
- - master
+ - main
- "rel_*"
# branches used to test the workflow
- "workflow_test_*"
SQLAlchemy/Alembic themselves without the need to ship/install a separate
package outside of SQLAlchemy.
-NOTE: copied/adapted from SQLAlchemy master for backwards compatibility;
+NOTE: copied/adapted from SQLAlchemy main for backwards compatibility;
this should be removable when Alembic targets SQLAlchemy 1.0.0.
"""
for db_url in expanded_urls:
log.info("Adding database URL: %s", db_url)
- if options.write_idents and provision.FOLLOWER_IDENT: # != 'master':
+ if options.write_idents and provision.FOLLOWER_IDENT:
with open(options.write_idents, "a") as file_:
file_.write(provision.FOLLOWER_IDENT + " " + db_url + "\n")
docker_mssql = mssql+pymssql://scott:tiger^5HHH@127.0.0.1:1433/test
oracle = oracle://scott:tiger@127.0.0.1:1521
oracle8 = oracle://scott:tiger@127.0.0.1:1521/?use_ansi=0
-firebird = firebird://sysdba:masterkey@localhost//Users/classic/foo.fdb
+firebird = firebird://sysdba:mainkey@localhost//Users/classic/foo.fdb
# test [ticket:1492]
- class Master(Base):
+ class Topic(Base):
- __tablename__ = "master"
+ __tablename__ = "topic"
id = Column(
Integer, primary_key=True, test_needs_autoincrement=True
)
id = Column(
Integer, primary_key=True, test_needs_autoincrement=True
)
- master_id = Column(None, ForeignKey(Master.id))
- master = relationship(Master)
+ topic_id = Column(None, ForeignKey(Topic.id))
+ topic = relationship(Topic)
Base.metadata.create_all(testing.db)
configure_mappers()
- assert class_mapper(Detail).get_property("master").strategy.use_get
- m1 = Master()
- d1 = Detail(master=m1)
+ assert class_mapper(Detail).get_property("topic").strategy.use_get
+ t1 = Topic()
+ d1 = Detail(topic=t1)
sess = fixture_session()
sess.add(d1)
sess.flush()
sess.expunge_all()
d1 = sess.query(Detail).first()
- m1 = sess.query(Master).first()
+ t1 = sess.query(Topic).first()
def go():
- assert d1.master
+ assert d1.topic
self.assert_sql_count(testing.db, go, 0)
# TODO: ISSUE: BUG: cached metadata is confusing the user.id
# column here with the anon_1 for some reason, when we
# use compiled cache. this bug may even be present in
- # regular master / 1.3. right now the caching of result
+ # regular main / 1.3. right now the caching of result
# metadata is disabled.
eq_(sess.query(Address).all(), address_result)
mssql: .[mssql]
- dbapimaster-sqlite: git+https://github.com/omnilib/aiosqlite.git#egg=aiosqlite
- dbapimaster-sqlite: git+https://github.com/coleifer/sqlcipher3.git#egg=sqlcipher3
+ dbapimain-sqlite: git+https://github.com/omnilib/aiosqlite.git#egg=aiosqlite
+ dbapimain-sqlite: git+https://github.com/coleifer/sqlcipher3.git#egg=sqlcipher3
- dbapimaster-postgresql: git+https://github.com/psycopg/psycopg2.git@master#egg=psycopg2
- dbapimaster-postgresql: git+https://github.com/MagicStack/asyncpg.git#egg=asyncpg
- dbapimaster-postgresql: git+https://github.com/tlocke/pg8000.git#egg=pg8000
+ dbapimain-postgresql: git+https://github.com/psycopg/psycopg2.git#egg=psycopg2
+ dbapimain-postgresql: git+https://github.com/MagicStack/asyncpg.git#egg=asyncpg
+ dbapimain-postgresql: git+https://github.com/tlocke/pg8000.git#egg=pg8000
- dbapimaster-mysql: git+https://github.com/PyMySQL/mysqlclient-python.git@master#egg=mysqlclient
- dbapimaster-mysql: git+https://github.com/PyMySQL/PyMySQL.git@master#egg=pymysql
- dbapimaster-mysql: git+https://github.com/mariadb-corporation/mariadb-connector-python@master#egg=mariadb
+ dbapimain-mysql: git+https://github.com/PyMySQL/mysqlclient-python.git#egg=mysqlclient
+ dbapimain-mysql: git+https://github.com/PyMySQL/PyMySQL.git#egg=pymysql
+ dbapimain-mysql: git+https://github.com/mariadb-corporation/mariadb-connector-python#egg=mariadb
- dbapimaster-oracle: git+https://github.com/oracle/python-cx_Oracle.git@main#egg=cx_Oracle
+ dbapimain-oracle: git+https://github.com/oracle/python-cx_Oracle.git#egg=cx_Oracle
- dbapimaster-mssql: git+https://github.com/mkleehammer/pyodbc.git@master#egg=pyodbc
+ dbapimain-mssql: git+https://github.com/mkleehammer/pyodbc.git#egg=pyodbc
cov: pytest-cov