Skip to content

Commit

Permalink
Feature-#65: Updated docs and tests for changes in environments and s…
Browse files Browse the repository at this point in the history
…chema
  • Loading branch information
yushao2 committed May 2, 2021
1 parent 45a4a65 commit da4a744
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
If you want to get up and running with Code Review Manager immediately, run:

```bash
# your github username
export GITHUB_USER="your-github-username"
# your personal github token used for interacting with the API
export GITHUB_TOKEN="your-github-token"
# comma seperated list of org/repo
Expand Down
13 changes: 9 additions & 4 deletions tests/datasource/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def pull_request():
title="[1] Initial Commit",
created_at=datetime.now(),
updated_at=datetime.now(),
approved=False,
approved=None,
rtr=False,
labels=[Label(name="Python")],
)

Expand Down Expand Up @@ -62,15 +63,17 @@ def test_bulk_insert(manager):
title="[1] Initial Commit",
created_at=datetime.now(),
updated_at=datetime.now(),
approved=False,
approved=None,
rtr=False,
labels=[Label(name="Python")],
),
PullRequest(
number=2,
title="[2] Adds README",
created_at=datetime.now(),
updated_at=datetime.now(),
approved=False,
approved=None,
rtr=False,
labels=[Label(name="Python")],
),
]
Expand All @@ -83,6 +86,7 @@ def test_update(manager, pull_request):
last_row_id = manager.insert(model=pull_request)

pull_request.title = "[1] Initial setup of repository"
pull_request.rtr = True
manager.update(row_id=last_row_id, model=pull_request)

assert len(manager.all()) == 1
Expand All @@ -93,7 +97,8 @@ def test_update(manager, pull_request):
"[1] Initial setup of repository",
"2020-01-01 00:00:00",
"2020-01-01 00:00:00",
0,
None,
1,
)
]

Expand Down

0 comments on commit da4a744

Please sign in to comment.