Skip to content

Commit a15e9f8

Browse files
visibility is optional
1 parent 5fe700f commit a15e9f8

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

src/codegen/git/schemas/repo_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RepoConfig(BaseModel):
2121
id: int
2222
name: str
2323
full_name: str
24-
visibility: RepoVisibility
24+
visibility: RepoVisibility | None = None
2525

2626
# Org fields
2727
organization_id: int

tests/integration/codegen/git/conftest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ def mock_config():
1818

1919

2020
@pytest.fixture(autouse=True)
21-
def repo_config() -> RepoConfig:
21+
def repo_config():
2222
with patch("codegen.git.utils.clone.get_authenticated_clone_url_for_repo_config") as mock_clone_url:
2323
mock_clone_url.return_value = "https://github.com/codegen-sh/Kevin-s-Adventure-Game.git"
24-
repo_config = RepoConfig(id=321, name="Kevin-s-Adventure-Game", full_name="codegen-sh/Kevin-s-Adventure-Game", organization_id="123", organization_name="codegen-sh")
24+
repo_config = RepoConfig(
25+
id=321,
26+
name="Kevin-s-Adventure-Game",
27+
full_name="codegen-sh/Kevin-s-Adventure-Game",
28+
organization_id="123",
29+
organization_name="codegen-sh",
30+
)
2531
yield repo_config

0 commit comments

Comments
 (0)