Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore tests (updated) #141

Merged
merged 14 commits into from
May 6, 2021
Merged

Restore tests (updated) #141

merged 14 commits into from
May 6, 2021

Conversation

taybin
Copy link
Contributor

@taybin taybin commented Apr 29, 2021

Description

This is an updated version of #30, with master merged in.

forsberg and others added 8 commits November 24, 2020 07:42
A lot of test classes are named test_*, which makes pytest *not* find them by default
* master: (75 commits)
  allow using 3.x of orjson.  Use orjson in tests (#135)
  fix tests directory name in Makefile (#134)
  updating version on master
  updating changelog
  Close window after popping the value from store (#137)
  fix rocksdb for use with global tables or tables that use_partitioner (#130)
  updating version
  updating changelog
  Fix for #126 (#127)
  updating readme
  updating readme
  updating readme
  updating version
  adding changelog
  setting use partitioner to True (#122)
  #113 - fix datadog and statsd sensor - on_stream_event_out() can now be called with no state (#119)
  Add app_name to prometheus metrics (#120)
  updating version
  updating changelog
  fix scan options (#117)
  ...
@taybin taybin mentioned this pull request Apr 29, 2021
@taybin
Copy link
Contributor Author

taybin commented Apr 29, 2021

It's failing because the code coverage is 59%, less than the 60% required. :/

@taybin
Copy link
Contributor Author

taybin commented Apr 29, 2021

@forsberg What is the purpose of the python_classes = test_* line? To include or exclude tests? Because the default is Test* and the majority of test classes start with Test_, but some also start with Test[A-Z].

@bobh66
Copy link
Contributor

bobh66 commented Apr 29, 2021

@taybin - the original faust project used class names that started with "test_" to the python_classes option was required for pytest to work. Later changes used the Test class names but until everything gets converted the python_classes is still needed.

@taybin
Copy link
Contributor Author

taybin commented Apr 29, 2021

@bobh66 okay, thanks. There's only one test with the test_ naming, so I'll just rename that one and remove the python_classes = line.

@codecov-commenter
Copy link

codecov-commenter commented May 4, 2021

Codecov Report

Merging #141 (27107ae) into master (48fa76b) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #141      +/-   ##
==========================================
- Coverage   93.62%   93.62%   -0.01%     
==========================================
  Files         100      100              
  Lines       10625    10627       +2     
  Branches     1201     1201              
==========================================
+ Hits         9948     9949       +1     
- Misses        618      619       +1     
  Partials       59       59              
Impacted Files Coverage Δ
faust/transport/drivers/aiokafka.py 38.14% <50.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 48fa76b...27107ae. Read the comment docs.

@taybin
Copy link
Contributor Author

taybin commented May 4, 2021

I'm not in a hurry to merge this as I'm working on restoring the aiokafka driver tests in #143 and I'm not fully getting some of the changes yet.

@patkivikram patkivikram merged commit 7a45b2b into faust-streaming:master May 6, 2021
@taybin taybin deleted the restore-tests branch May 6, 2021 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants