Skip to content

Commit

Permalink
MNT: use port 8001 in the tests and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mrakitin committed Oct 21, 2023
1 parent fbb75de commit b40ec83
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/source/notebooks/madx.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"from sirepo_bluesky.madx_flyer import MADXFlyer\n",
"from sirepo_bluesky.sirepo_ophyd import create_classes\n",
"\n",
"connection = SirepoBluesky(\"http://localhost:8000\")\n",
"connection = SirepoBluesky(\"http://localhost:8001\")\n",
"\n",
"data, schema = connection.auth(\"madx\", \"00000002\")\n",
"classes, objects = create_classes(\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/source/notebooks/shadow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"from sirepo_bluesky.sirepo_bluesky import SirepoBluesky\n",
"from sirepo_bluesky.sirepo_ophyd import BeamStatisticsReport, create_classes\n",
"\n",
"connection = SirepoBluesky(\"http://localhost:8000\")\n",
"connection = SirepoBluesky(\"http://localhost:8001\")\n",
"\n",
"data, schema = connection.auth(\"shadow\", sim_id=\"00000002\")\n",
"classes, objects = create_classes(connection=connection)\n",
Expand Down Expand Up @@ -113,7 +113,7 @@
"from sirepo_bluesky.sirepo_bluesky import SirepoBluesky\n",
"from sirepo_bluesky.sirepo_ophyd import BeamStatisticsReport, create_classes\n",
"\n",
"connection = SirepoBluesky(\"http://localhost:8000\")\n",
"connection = SirepoBluesky(\"http://localhost:8001\")\n",
"\n",
"data, schema = connection.auth(\"shadow\", sim_id=\"00000002\")\n",
"\n",
Expand Down
6 changes: 3 additions & 3 deletions docs/source/notebooks/srw.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"from sirepo_bluesky.sirepo_bluesky import SirepoBluesky\n",
"from sirepo_bluesky.sirepo_ophyd import create_classes\n",
"\n",
"connection = SirepoBluesky(\"http://localhost:8000\")\n",
"connection = SirepoBluesky(\"http://localhost:8001\")\n",
"\n",
"data, schema = connection.auth(\"srw\", sim_id=\"00000002\")\n",
"classes, objects = create_classes(connection=connection)\n",
Expand Down Expand Up @@ -112,7 +112,7 @@
"from sirepo_bluesky.sirepo_bluesky import SirepoBluesky\n",
"from sirepo_bluesky.sirepo_ophyd import create_classes\n",
"\n",
"connection = SirepoBluesky(\"http://localhost:8000\")\n",
"connection = SirepoBluesky(\"http://localhost:8001\")\n",
"\n",
"data, schema = connection.auth(\"srw\", sim_id=\"00000002\")\n",
"classes, objects = create_classes(connection=connection)\n",
Expand Down Expand Up @@ -195,7 +195,7 @@
"from sirepo_bluesky.sirepo_bluesky import SirepoBluesky\n",
"from sirepo_bluesky.sirepo_ophyd import create_classes\n",
"\n",
"connection = SirepoBluesky(\"http://localhost:8000\")\n",
"connection = SirepoBluesky(\"http://localhost:8001\")\n",
"\n",
"data, schema = connection.auth(\"srw\", sim_id=\"00000003\")\n",
"classes, objects = create_classes(\n",
Expand Down
22 changes: 11 additions & 11 deletions sirepo_bluesky/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,76 +67,76 @@ def make_dirs():

@pytest.fixture(scope="function")
def srw_empty_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("srw", "emptysim")
return connection


@pytest.fixture(scope="function")
def srw_youngs_double_slit_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("srw", "00000000")
return connection


@pytest.fixture(scope="function")
def srw_basic_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("srw", "00000001")
return connection


@pytest.fixture(scope="function")
def srw_tes_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("srw", "00000002")
return connection


@pytest.fixture(scope="function")
def srw_ari_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("srw", "00000003")
return connection


@pytest.fixture(scope="function")
def srw_chx_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("srw", "HXV1JQ5c")
return connection


@pytest.fixture(scope="function")
def shadow_basic_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("shadow", "00000001")
return connection


@pytest.fixture(scope="function")
def shadow_tes_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("shadow", "00000002")
return connection


@pytest.fixture(scope="function")
def madx_resr_storage_ring_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("madx", "00000000")
return connection


@pytest.fixture(scope="function")
def madx_bl1_compton_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("madx", "00000001")
return connection


@pytest.fixture(scope="function")
def madx_bl2_triplet_tdc_simulation(make_dirs):
connection = SirepoBluesky("http://localhost:8000")
connection = SirepoBluesky("http://localhost:8001")
data, _ = connection.auth("madx", "00000002")
return connection

0 comments on commit b40ec83

Please sign in to comment.