Skip to content

Commit 41c499c

Browse files
chore: remove intro quickstart sample (#2103)
* chore: remove intro quickstart sample * Update test_node_mono_repo.py * Update test_node_mono_repo.py * Update container_test.yaml * Update container_test.yaml * Update node_mono_repo.py * Update node_mono_repo.py * Update test_node_mono_repo.py * Update node_mono_repo.py * Update node_mono_repo.py * Update test_node_mono_repo.py --------- Co-authored-by: miguel <miguelvelezsa@google.com>
1 parent ff4fabe commit 41c499c

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

synthtool/languages/node_mono_repo.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
from datetime import date
3030
from os import system
3131

32-
3332
_REQUIRED_FIELDS = ["name", "repository", "engines"]
3433
_TOOLS_DIRECTORY = "/synthtool"
3534
_GENERATED_SAMPLES_DIRECTORY = "./samples/generated"
@@ -539,7 +538,6 @@ def owlbot_main(
539538
library_version,
540539
str(Path(relative_dir, _GENERATED_SAMPLES_DIRECTORY).resolve()),
541540
)
542-
copy_list_sample_to_quickstart(relative_dir=relative_dir)
543541

544542

545543
def owlbot_entrypoint(

tests/test_node_mono_repo.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import filecmp
1616
import pathlib
1717
import re
18-
import os
1918
from pathlib import Path
2019
from unittest import TestCase
2120
from unittest.mock import Mock, patch, MagicMock
@@ -222,43 +221,6 @@ def test_write_release_please_config():
222221
)
223222

224223

225-
def test_copy_quickstart():
226-
with util.copied_fixtures_dir(
227-
FIXTURES / "nodejs_mono_repo_with_samples" / "packages" / "datastore"
228-
):
229-
node_mono_repo.copy_list_sample_to_quickstart(
230-
FIXTURES / "nodejs_mono_repo_with_samples" / "packages" / "datastore"
231-
)
232-
233-
assert filecmp.cmp(
234-
pathlib.Path(
235-
FIXTURES
236-
/ "nodejs_mono_repo_with_samples"
237-
/ "packages"
238-
/ "datastore"
239-
/ "samples"
240-
/ "quickstart.js"
241-
),
242-
pathlib.Path(
243-
FIXTURES
244-
/ "nodejs_mono_repo_with_samples"
245-
/ "packages"
246-
/ "datastore"
247-
/ "samples"
248-
/ "generated"
249-
/ "compare_to_quickstart.js"
250-
),
251-
)
252-
os.remove(
253-
FIXTURES
254-
/ "nodejs_mono_repo_with_samples"
255-
/ "packages"
256-
/ "datastore"
257-
/ "samples"
258-
/ "quickstart.js"
259-
)
260-
261-
262224
def test_generate_index_ts_empty_versions():
263225
# use a non-nodejs template directory
264226
with util.chdir(FIXTURES / "node_templates" / "index_samples"):

0 commit comments

Comments
 (0)