You can use the following steps to test and modify this library on your machine.
Make sure you have Python 3.6+ and Poetry installed.
- Clone the repository from GitHub.
- Run
make install
to install the project's dependencies and Git hooks. - Set up
wikibase-docker
by following the "local_wikibase_instance
" guide. Rename the
config-example.json
file toconfig-tests.json
. This is the configuration file that will be used for testing. Fill in either theoauth_credentials
or thelogin_credentials
parameters and delete the other. If you didn't changewikibase-docker
's configuration, you can use the following:{ "apiUrl": "http://localhost:8181/w/api.php", "loginCredentials": { "botUsername": "WikibaseAdmin", "botPassword": "WikibaseDockerAdminPass" } }
In
config-tests.json
, you can also specify other parameters you want to pass to the.Wikibase
class during testing.- Make your changes to the code.
- Make sure the tests are still passing (
make test
).